KUBERNETES: How To Check Certificates Expiration In Kubernetes?
Below command can be used.
kubeadm certs check-expiration
Below is sample output of the command.
#sudo kubeadm certs check-expiration
[check-expiration] Reading configuration from the cluster...
[check-expiration] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
CERTIFICATE EXPIRES RESIDUAL TIME CERTIFICATE AUTHORITY EXTERNALLY MANAGED
admin.conf Feb 23, 2025 18:39 UTC 362d ca no
apiserver Feb 23, 2025 18:39 UTC 362d ca no
apiserver-etcd-client Feb 23, 2025 18:39 UTC 362d etcd-ca no
apiserver-kubelet-client Feb 23, 2025 18:39 UTC 362d ca no
controller-manager.conf Feb 23, 2025 18:39 UTC 362d ca no
etcd-healthcheck-client Feb 23, 2025 18:39 UTC 362d etcd-ca no
etcd-peer Feb 23, 2025 18:39 UTC 362d etcd-ca no
etcd-server Feb 23, 2025 18:39 UTC 362d etcd-ca no
front-proxy-client Feb 23, 2025 18:39 UTC 362d front-proxy-ca no
scheduler.conf Feb 23, 2025 18:39 UTC 362d ca no
CERTIFICATE AUTHORITY EXPIRES RESIDUAL TIME EXTERNALLY MANAGED
ca Jan 03, 2034 06:57 UTC 9y no
etcd-ca Jan 03, 2034 06:57 UTC 9y no
front-proxy-ca Jan 03, 2034 06:57 UTC 9y no
No comments:
Post a Comment