[Kubernetes] The connection to the server <host>:<port> was refused

xeomina·2022년 8월 1일
0

Kubernetes

목록 보기
1/1

kubernetes error

master node

에러

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

해결

swapoff -a
systemctl start kubelet
exit

worker node

에러

The connection to the server localhost:8080 was refused - did you specify the right host or port?

해결

# mkdir -p $HOME/.kube
# scp root@master1:/etc/kubernetes/admin.conf $HOME/.kube/config

0개의 댓글