kubectl的node节点查询节点信息报错
作者:互联网
[root@node02 ~]# kubectl get nodes
the server doesn't have a resource type "nodes"
解决方法:
进入到master节点
scp /etc/kubernetes/admin.conf node02:~/.kube/config
[root@node01 .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
恢复正常。
标签:node,kubectl,Ready,252d,报错,v1.9,master,节点 来源: https://www.cnblogs.com/yaohuster/p/10986291.html