In Kubernetes, certificates are by default installed in below directories.
/etc/kubernetes/pki/
/var/lib/kubelet/pki/
Below is the tar command to backup above Kubernetes certificate directories.
sudo tar cvzf ~/`hostname -s`_cert_backup.tgz /etc/kubernetes/pki/ /var/lib/kubelet/pki/
Above command will create backup tgz file under user home directory with short hostname of the Node where the command is executed.
No comments:
Post a Comment