[[email protected] ~]# kubectl get nodes
the server doesn‘t have a resource type "nodes"
解决方法:
进入到master节点
scp /etc/kubernetes/admin.conf node02:~/.kube/config
[[email protected] .kube]# kubectl get nodes
NAME STATUS ROLES AGE VERSION
master01 Ready master 252d v1.9.6
node01 Ready <none> 252d v1.9.6
node02 Ready <none> 252d v1.9.6
恢复正常。
原文地址:https://www.cnblogs.com/yaohuster/p/10986291.html
时间: 2024-10-11 19:05:59