Kubernetes
Easy
Commands
Which command shows when each certificate in a kubeadm cluster's control plane PKI expires?
Select your answer:
Show answer and explanation
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.
More easy Kubernetes questions
- With default settings, how long are the leaf certificates that kubeadm generates for the control plane valid?
- Which kubectl command is used to view the logs of a pod?
- What is a Pod in Kubernetes?
- What is the purpose of a Kubernetes Service?
- Which command would you use to create a deployment from a YAML file?
- Which kubectl command would you use to get detailed information about a specific pod?