I've created a CSR for the K8 cluster. How to i go about making that request?

James Hope:
I’ve created a CSR for the K8 cluster. How to i go about making that request?

James Hope:
apiVersion: http://certificates.k8s.io/v1|certificates.k8s.io/v1
kind: CertificateSigningRequest
metadata:
name: akshay
spec:
signerName: http://kubernetes.io/kube-apiserver-client|kubernetes.io/kube-apiserver-client
groups:

  • system:authenticated
    request: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURSBSRVFVRVNULS0tLS0KTUlJQ1ZqQ0NBVDRDQVFBd0VURVBNQTBHQTFVRUF3d0dZV3R6YUdGNU1JSUJJakFOQmdrcWhraUc5dzBCQVFFRgpBQU9DQVE4QU1JSUJDZ0tDQVFFQXZLMGdwamgxVyttcGt$
    usages:
  • digital signature
  • key encipherment
  • server auth

James Hope:
how do i go about submitting this request via kubectl?

Sanjay Kumar:
Simply create the object using kubectl create -f filename.yaml
Then you can see the csr using kubectl get csr
Also approve it using Kubectl certificate approve <Akshay or the name of the csr >

James Hope:
thanks @Sanjay Kumar. i thought i tried that but okay. makes sense.