-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace all kubernetes certificates including ca after that could see kubectl logs and exec is not working #2015
Comments
root@ubuntu:/kubernetes/yamls# kubectl logs kube-apiserver-ubuntu -n kube-system |
apiserver log from docker logs: |
kubelet logs: |
from above log seem like kubelet authentication issue so I deleted /var/lib/kubelet/pki/kubelet-client-current.pem to recreate again ,,,but kube-system coredns-5644d7b6d9-4z5kn 0/1 Completed 0 57d kubelet log_ |
kubeadm does not support CA rotation. it's a complicated process and that is why the CA is signed for 10 years. IMO an even more difficult aspect is updating the service account (sa.*) files. we have tentative support for that in the future using the kubeadm operator: you seem to be trying to change your master IP, i'm going to have to point you at this ticket again: but again this is a core k8s complexity. |
/triage support |
kubeadm version (use
kubeadm version
):1.15.4 and 1.16
Environment: : kubeadm onenode cluster barematel
kubectl version
): 1.15.4What happened?
for a security reason I need to replace all certificate including CA ,but after that could see kubectl logs and exec is not working ,,looks like kubelet authentication issue after that I have deleted the the /var/lib/kublet/client.pem and restart the kubelet to generate again but after that only static pod is coming ,weave and coredns is not comig up
How to reproduce it (as minimally and precisely as possible)?
rm -rf /etc/kubernetes
kubeadm init phase certs all$(id -u):$ (id -g) "$HOME"/.kube/config
kubeadm init phase kubeconfig all
kubeadm init phase control-plane all
kubeadm init phase etcd local
rm -rf /root/.kube
mkdir -p "$HOME"/.kube
sudo cp -rf /etc/kubernetes/admin.conf "$HOME"/.kube/config
sudo chown
--- after that could see kubectl logs and exec is not working
The text was updated successfully, but these errors were encountered: