CertKeen

Certified Kubernetes Administrator (CKA) · Free practice question 10 of 12

Approving a client CertificateSigningRequest

An admin at Yelverton Insurance created a CertificateSigningRequest named sara-csr for a new user with signerName kubernetes.io/kube-apiserver-client. It shows Pending. How is it approved so a certificate is issued?

  1. A.kubeadm certs renew sara-csr
  2. B.kubectl patch csr sara-csr -p '{"status":"Approved"}'
  3. C.kubectl create token sara-csr --approve
  4. D.kubectl certificate approve sara-csr
Show answer and explanation

Correct answer: D. kubectl certificate approve sara-csr

Why: kubectl certificate approve adds the Approved condition to the CSR, after which the signer issues the certificate and it can be read from status.certificate. kubeadm certs renew handles kubeadm-managed control plane certificates, a normal patch cannot set the approval condition, and kubectl create token issues ServiceAccount tokens.

More free Certified Kubernetes Administrator (CKA) questions