How to Create a Certificate Using CSR Object in Kubernetes

Planted .
  1. Create a private key and x509 CSR.
  2. Create a CSR object in Kubernetes.
  3. Apply kubectl apply -f myuser.yaml
  4. Get the list of available CSRs.
# To get list
kubectl get csr

## To delete a csr
kubectl delete csr <csrname>
  1. Approve/reject the request
kubectl certificate approve <csrname>

# To deny
kubectl certificate deny <csrname>****
Updated . Thoughts? Email me.