Certificates for Kubernetes cluster as part of SandboxV2 installation gets expired every 1 year..
So the same needs to be reknewed following below mentioned steps:
Login to the master node
kubeadm alpha certs check-expiration
kubeadm alpha certs renew all
mkdir /tmp/manifests
mv /etc/kubernetes/manifests/* /tmp/manifests/
wait for few mins
mv /tmp/manifests/* /etc/kubernetes/manifests/
cp /etc/kubernetes/admin.conf ~/.kube/config
exit from master
from console run scp root@mzmaster:/root/.kube/config ~/.kube/mzcluster.config
also , source .bashrc
Highlight important information in a panel like this one. To edit this panel's color or style, select one of the options in the menu. |
The content by label feature automatically displays related articles based on labels you choose. To edit options for this feature, select the placeholder and tap the pencil icon.