# Which command shows when each certificate in a kubeadm cluster's control plane PKI expires?

Kubernetes, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-shows-when-each-certificate-in-a-kubeadm-clusters-control-plane-pki-expires

- A. kubectl get certificates -A
- B. kubeadm upgrade plan --show-certs
- C. kubeadm certs check-expiration
- D. kubeadm certs list --expiry

**Answer:** kubeadm certs check-expiration

**Explanation:** kubeadm certs check-expiration reads the certificates in /etc/kubernetes/pki and the client certificates embedded in admin.conf, controller-manager.conf and scheduler.conf, and prints their expiry date and residual time. It works from the files on disk, so it runs even when the API server is down. kubectl get certificates lists cert-manager Certificate resources, not the kubeadm PKI.
