1. Check node is k8s master or worker
kubectl get nodes
kubectl get node pe-ioc-master03 -o=yaml
2. Check certificate expired:
kubeadm certs check-expiration
Note: https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/
Folder include configure (/etc/kubernetes/) and certificate file (/etc/kubernetes/pki)
3. Check kubeadm version
kubeadm version
4. Restart the kubelet:
sudo systemctl daemon-reload
sudo systemctl restart kubelet
5. Renew Certificate on master node (run command for each node):
kubeadm alpha certs renew all
service docker restart
Nhận xét