Kubernetes

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

chaenii 2022. 1. 6. 17:09

가끔 서버를 reboot하면 생기는 The connection to the server <host>:6443 was refused - did you specify the right host or port? 에러를 아래의 명령어를 수행함으로써 해결할 수 있다.

sudo -i
swapoff -a
exit
strace -eopenat kubectl version

 


그래도 안되는 경우에는 kubelet 문제일 수 있다.

아래의 명령어로 kubelet가 active 상태인지 확인한다.

systemctl status kubelet

 

반응형