Debdoot:
Hi team , I am getting an error in lab test 2 question 6 ( approved ,failed) . Can anybody tell me what is the problem , sharing the logs ( John CSR logs) with you guys .
unnivkn:
just run this code
unnivkn:
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
Debdoot:
No @unnivkn it is not working . can you please tryout this query in your system and share me the whole log. Thanks in advance
unnivkn:
can you please share your log/errors ?
Debdoot:
Apologies , it worked now , i was doing some mistake .One query , why you inserted
groups: - system:authenticated and usages: - client auth. Actually i was following K8s docs link https://kubernetes.io/docs/tasks/tls/managing-tls-in-a-cluster/. Can you me the difference between your logic and k8s documentation logic.
Debdoot: