인증서 만료
안녕하세요. 이틀째 해결이 되지 않아 질문드립니다.
#1 문제 상황: kubectl get nodes 명령
E0305 21:35:56.857293 1069 memcache.go:265] couldn't get current server API group list: Get "https://10.0.2.10:6443/api?timeout=32s": dial tcp 10.0.2.10:6443: connect: connection refused
The connection to the server 10.0.2.10:6443 was refused - did you specify the right host or port?
#2 journalctl -fu kubelet 확인
master kubelet[3737]: E0305 23:25:28.291190 3737 bootstrap.go:266] part of the existing bootstrap client certificate in /etc/kubernetes/kubelet.conf is expired: 2025-02-23 08:45:31 +0000 UTC
Mar 05 23:25:28 k8s-master kubelet[3737]: E0305 23:25:28.291228 3737 run.go:74] "command failed" err="failed to run Kubelet: unable to load bootstrap kubeconfig: stat /etc/kubernetes/bootstrap-kubelet.conf: no such file or directory"
Mar 05 23:25:28 k8s-master systemd[1]: kubelet.service: Main process exited, code=exited, status=1/FAILURE
Mar 05 23:25:28 k8s-master systemd[1]: kubelet.service: Failed with result 'exit-code'.
인증서 만료 문제로 보여 인증서 갱신을 여러 번 해봤지만 제대로 작동하지 않는 것 같습니다.
인증서 갱신에 성공해도
kubectl config use-context k8s 명령 시
없는 클러스터라고 합니다.
아래는 초기 인증서 기간입니다.
혹시 제가 문제 포인트를 잘못 잡고 있는 것인지, 문제 포인트가 맞다면 어떻게 해결해야 할지 알 수 있을까요?
감사합니다.