解决K8S报错:error: You must be logged in to the server (Unauthorized)

  • Post author:
  • Post category:技术
  • Post comments:0评论

master节点执行命令报错:error: You must be logged in to the server (Unauthorized)

cd $HOME/.kube/
cp config config-bak
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

记录一下,应该是阿里云防火墙到期了引起的。没想明白具体什么原因。

参考:

http://www.manongjc.com/detail/22-jzciviojjmppggw.html

0 0 votes
文章评分
订阅
提醒
guest
0 评论
最旧
最新 得票最多