首页 > Web开发 > 详细

Kubernetes - Error from server (InternalError): an error on the server ("") has prevented the request from succeeding (get nodes)

时间:2021-02-01 11:56:00      阅读:1716      评论:0      收藏:0      [点我收藏+]

I have an HA k8s cluster which has 3 control-plane nodes and 2 worker nodes. When I power off 2 control-plane nodes and all worker node, leaving only 1 control-plane node live, below error occurs:

scnzzh@zubt2:~$ kubectl get node
Error from server (InternalError): an error on the server ("") has prevented the request from succeeding (get nodes)
scnzzh@zubt2:~$ kubectl get pod
Error from server (InternalError): an error on the server ("") has prevented the request from succeeding (get pods)

When I power on one more control-plane node, the error disappears:

scnzzh@zubt2:~$ kubectl get node
NAME    STATUS     ROLES                  AGE   VERSION
zubt1   NotReady   control-plane,master   9d    v1.20.2
zubt2   Ready      control-plane,master   9d    v1.20.2
zubt3   Ready      control-plane,master   9d    v1.20.2
zubt4   NotReady   <none>                 9d    v1.20.2
zubt5   NotReady   <none>                 9d    v1.20.2

So I think an HA k8s cluster needs at least 2 control-plane nodes alive to work.

 

Kubernetes - Error from server (InternalError): an error on the server ("") has prevented the request from succeeding (get nodes)

原文:https://www.cnblogs.com/zhangzhihui/p/14355147.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!