kubectl get nodes 执行错误:The connection to the server localhost:8080 was refused - did you specify the
一、出现的问题[root@centos02 kubernetes]# kubectl get nodesThe connection to the server localhost:8080 was refused - did you specify the right host or port?二、解决办法1.查看是否有"/etc/kubernetes/admin.conf"文件。如果没有则从主节点复制到本机环境scp -r root@192.168.88.5:/etc/kubernete
原创
2022-01-01 20:08:15 ·
3170 阅读 ·
0 评论