# kubectl get nodes
E0716 09:19:37.506416 26939 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0716 09:19:37.506721 26939 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0716 09:19:37.508194 26939 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0716 09:19:37.509679 26939 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0716 09:19:37.511266 26939 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
The connection to the server localhost:8080 was refused - did you specify the right host or port?
사용중인 환경은 GCP 의 VM 인스턴스인데,
처음엔 클러스터 구성까지 한뒤 다음날 재접속 하니까 조회가 안됬었다.
- 다시 세팅 후 Service 를 띄워 그 다음날이 됬는데 또 같은 문제가 발생했다.
클러스터를 생성한 6443 포트는 worker, master node 둘다 사용중이고,
master node 에 클러스터를 다시 생성하면 당연히 실패했다.
[ERROR Port-6443]: Port 6443 is in use
# kubernetes 설정파일 경로
/etc/kubernetes/admin.conf
sudo cp /etc/kubernetes/admin.conf $HOME/.kube/config
# kubectl get nodes
NAME STATUS ROLES AGE VERSION
bk-kube-master1 Ready control-plane 20h v1.27.3
bk-worker001 Ready <none> 20h v1.27.3
bk-worker002 Ready <none> 20h v1.27.3
bk-worker003 Ready <none> 20h v1.27.3
많은 도움이 되었습니다, 감사합니다.