kubeadm 配置好 master 节点后,提示了:
To start using your cluster, you need to run (as a regular user):
sudo cp /etc/kubernetes/admin.conf $HOME/
sudo chown $(id -u):$(id -g) $HOME/admin.conf
export KUBECONFIG=$HOME/admin.conf
按照这个在 master 节点上操作后再使用 kubectl 。
相关文章
- 记一次k8s报错:The connection to the server ip:6443 was refused - did you specify the right host or port?
- 【k8s】2-安装部署 以及flannel访问失败问题 The connection to the server raw.githubusercontent.com was refused - did you specify the right host or port?
- 如何排查:The connection to the server ip:6443 was refused - did you specify the right host or port
- k8s The connection to the server localhost:8080 was refused - did you specify the right host or port?
- The connection to the server localhost:8080 was refused - did you specify the right host or port?
- K8s - 解决主机重启后kubelet无法自动启动问题 错误:The connection to the server 192.168.60.128:6443 was refused - did you specify the right host or port?
- 使用二进制方式安装K8S时使用kubectl命令报错:The connection to the server localhost:8080 was refused - did you specify the right host or port?