Kubernetes - The connection to the server 10.0.2.15:6443 was refused - did you specify the right host or port?


scnzzh@ZUBT1:~$ kubectl get nodes
The connection to the server 10.0.2.15:6443 was refused - did you specify the right host or port?

 

Execute below command again:

sudo swapoff -a

 

scnzzh@ZUBT1:~$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
zubt1 Ready master 3d23h v1.19.2
zubt2 NotReady <none> 3d21h v1.19.2
zubt3 NotReady <none> 3d21h v1.19.2

 

Executing 'sudo swapoff -a' on the NotReady nodes and wait a moment, status of the nodes will change to Ready.


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2024 CODEPRJ.COM