报错如下:
The connection to the server localhost:8080 was refused - did you specify the right host or port?
解决办法:
执行:
cp /etc/kubernetes/admin.conf $HOME/
chown $(id -u):$(id -g) $HOME/admin.conf
export KUBECONFIG=$HOME/admin.conf
报错如下:
The connection to the server localhost:8080 was refused - did you specify the right host or port?
解决办法:
执行:
cp /etc/kubernetes/admin.conf $HOME/
chown $(id -u):$(id -g) $HOME/admin.conf
export KUBECONFIG=$HOME/admin.conf