1:问题
kubernetes集群,一台master, 一台node1,一台node2,重启电脑后,node1节点和node2节点报错如下
error: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2:解决方法
2.1:查看master节点
进入到该目录下cd /etc/kubernetes
把admin.conf文件下载到本地
2.2:把admin.conf文件上传到node1和node2上面的/etc/kubernetes目录下面
2.3:在node1和node2的/etc/kubernetes执行
export KUBECONFIG=/etc/kubernetes/admin.conf
source /etc/profile
标签:provided,KUBERNETES,kubernetes,no,admin,etc,conf,node1,node2
From: https://blog.csdn.net/W_317/article/details/139371329