Hi, in the Mock Exam - 2 Question - 6 (about new developer John) The condition-s . . .

AG:
Hi, in the Mock Exam - 2 Question - 6 (about new developer John)
The condition-status of approved CSR is Approved,Failed
I have try multiple times already and still same result. How can I solve it?

Deepu:
Use example from the link given question

Deepu:
I had same issue

AG:
I actually used this link and request.
But still unsuccessful.


Mohamed Ayman:
Create the CSR:

cat <<EOF | kubectl apply -f -
apiVersion: <http://certificates.k8s.io/v1|certificates.k8s.io/v1>
kind: CertificateSigningRequest
metadata:
  name: john-developer
spec:
  groups:
  - system:authenticated
  request: $(cat john.csr | base64 | tr -d "\n")
  signerName: <http://kubernetes.io/kube-apiserver-client|kubernetes.io/kube-apiserver-client>
  usages:
  - client auth
EOF

Mohamed Ayman:
Then approve It:
kubectl certificate approve john-developer

AG:
Thank U both!