本文共 320 字,大约阅读时间需要 1 分钟。
在node节点执行kubectl get pods 会报:
The connection to the server localhost:8080 was refused - did you specify the right host or port?
# 在从节点执行 复制admin.conf 到 从节点scp root@c208:/etc/kubernetes/admin.conf /etc/kubernetesecho "export KUBECONFIG=/etc/kubernetes/admin.conf" >> ~/.bash_profilesource ~/.bash_profilekubectl get pods
转载地址:http://btxwb.baihongyu.com/