错误信息
Error: INSTALLATION FAILED: Kubernetes cluster unreachable: Get "http://localhost:8080/version": dial tcp [::1]:8080: connect: connection refused
解决方法
编辑/etc/profile
vim /etc/profile
追加内容:
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
刷新配置
source /etc/profile
文档更新时间: 2023-03-09 09:31 作者:admin