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-2025 CODEPRJ.COM