kubernetes 错误及解决方法
kubernetes 错误及解决方法背景: 因机器关机导致k8s服务被迫停止,再想启动就报错root@1111111:~# kubectl get podsThe connection to the server localhost:8080 was refused - did you specify the right host or port解决方法:root@1111111:~# echo
·
kubernetes 错误及解决方法
- 背景: 因机器关机导致k8s服务被迫停止,再想启动就报错
root@1111111:~# kubectl get pods The connection to the server localhost:8080 was refused - did you specify the right host or port
解决方法:
root@1111111:~# echo "export KUBECONFIG=/etc/kubernetes/kubelet.conf" >> /etc/profile
root@1111111:~# source /etc/profile
执行完以上两步 成功恢复
更多推荐
已为社区贡献5条内容
所有评论(0)