couldn‘t get current server API group list: Get “http://localhost:8080/api?timeout=32s“
·
1、执行命令kubectl get node
报错
E0109 19:18:43.889496 5921 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
2、执行命令
cat <<EOF >> /root/.bashrc
export KUBECONFIG=/etc/kubernetes/admin.conf
EOF
source /root/.bashrc
3、退出,重新执行kubectl get node
更多推荐
已为社区贡献2条内容
所有评论(0)