작성
·
3K
0
마스터 노드에서는 아래와 같이 kubeadm init 명령어가 잘 성공 했는데
NAME STATUS ROLES AGE VERSION
master0 Ready control-plane,master 6m33s v1.22.2
워커노드에서는 아래와 같이 조인이 안되네요 ㅠㅠ 해결방법을 알 수 있을까요? 전에는 됐었는데 한 번 지웠다가 다시 하려니 안되네요 ㅠ..
root@node0:~# kubeadm join 192.168.52.128:6443 --token 9frfjm.xc4s3qp1a8k6qc9c --discovery-token-ca-cert-hash sha256:f944e91ef3b4e47c9e08e62d50c7a066279c86c6e0c0250ce6e8013af1016d8b
[preflight] Running pre-flight checks
[preflight] Reading configuration from the cluster...
[preflight] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
[kubelet-start] Starting the kubelet
[kubelet-start] Waiting for the kubelet to perform the TLS Bootstrap...
[kubelet-check] Initial timeout of 40s passed.
error execution phase kubelet-start: error uploading crisocket: timed out waiting for the condition
To see the stack trace of this error execute with --v=5 or higher
root@node0:~# journalctl -xeu kubelet
Apr 10 16:22:34 node0 kubelet[3601]: E0410 16:22:34.951232 3601 kubelet_node_status.go:93] "Unable to register node with API server" err="Unauthorized" no>
Apr 10 16:22:35 node0 kubelet[3601]: E0410 16:22:35.051636 3601 kubelet.go:2407] "Error getting node" err="node \"node0\" not found"
Apr 10 16:22:35 node0 kubelet[3601]: E0410 16:22:35.171824 3601 kubelet.go:2407] "Error getting node" err="node \"node0\" not found"