Hello All, I'm having trouble with the first question in security chapter [Prac . . .

Barakota:
Hello All,

I’m having trouble with the first question in security chapter [Practice Test Certificate API], hope someone could help:

Q: Create a CertificateSigningRequest object with the name akshay with the contents of the akshay.csr file"

I created the csr object as yaml file, is it supposed to reflect immediately in the output of the command [kubectl get csr] ?
If not, then what’s the step I need to do next ?

Thanks in advance,
Br,

unnivkn:
Hi barakota… clean up your previous work & try to run this. cat <<EOF | kubectl apply -f -
apiVersion: http://certificates.k8s.io/v1|certificates.k8s.io/v1
kind: CertificateSigningRequest
metadata:
name: akshay
spec:
groups:

kubectl get csr

unnivkn:
note: don’t miss the ‘cat’ word in the 2nd line.

Barakota:
Thanks a lot @unnivkn !!
I was missing kubectl apply -f :pensive:

unnivkn:
you welcome