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

couldn‘t get current server API group list: Get “http://localhost:8080/api?timeout=32s“_第1张图片

2、执行命令

cat <> /root/.bashrc

export KUBECONFIG=/etc/kubernetes/admin.conf

EOF

source /root/.bashrc

3、退出,重新执行kubectl get node

你可能感兴趣的:(http,服务器,网络协议)