原文:https://github.com/kubernetes/kubernetes/issues/23726
Deleted the old config from ~/.kube and then restarted docker (for macos) and it rebuilt the config folder.
All good now when I do 'kubectl get nodes'.
1. rm -rf ~/.kube
2. 重启 docker 和 k8s
解决kubectl节点获取问题
本文介绍了一种解决kubectl无法正常获取节点信息的问题的方法。通过删除旧的kube配置并重启docker,可以重建kube配置文件夹,从而确保kubectl get nodes命令能够正常工作。
原文:https://github.com/kubernetes/kubernetes/issues/23726
Deleted the old config from ~/.kube and then restarted docker (for macos) and it rebuilt the config folder.
All good now when I do 'kubectl get nodes'.
1. rm -rf ~/.kube
2. 重启 docker 和 k8s
3842
5458
1259
4706
972
4万+

被折叠的 条评论
为什么被折叠?