报错The connection to the server localhost:8080 was refused - did you specify the right host or port?
原因环境变量
kuebernetes master 没有与主机绑定 集群初始化没有绑定 此时设置主机的环境变量可以解决问题
解决方式
vim /etc/profile
export KUBECONFIG=/etc/kubernetes/admin.conf
保存退出
执行 . /etc/profile
浙公网安备 33010602011771号