k3s执行helm命令报错:"Error: Kubernetes cluster unreachable: Get "http://localhost:8080/v
2021-01-06 19:31
标签:exp 解决 写入内容 export file net 通过 host refused 报错信息: 报错原因: helm v3版本不再需要Tiller,而是直接访问ApiServer来与k8s交互,通过环境变量 解决方法: 手动配置 临时解决: 永久解决: k3s执行helm命令报错:"Error: Kubernetes cluster unreachable: Get "http://localhost:8080/version?timeout=32s": dial tcp [::1]:8080: connect: connection refused" 标签:exp 解决 写入内容 export file net 通过 host refused 原文地址:https://www.cnblogs.com/varyuan/p/14223553.htmlError: Kubernetes cluster unreachable: Get "http://localhost:8080/version?timeout=32s": dial tcp [::1]:8080: connect: connection refused
KUBECONFIG
来读取存有ApiServre的地址与token的配置文件地址,默认地址为~/.kube/config
KUBECONFIG
环境变量
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
vi /etc/profile
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
source /etc/profile
文章标题:k3s执行helm命令报错:"Error: Kubernetes cluster unreachable: Get "http://localhost:8080/v
文章链接:http://soscw.com/index.php/essay/40542.html