I’m trying to follow the instructions at Certificate Signing Requests | Kubernetes to create a CSR for a user who only has access to pods. However when I try to connect to the cluster using my private key I get the following error:
$ kubectl get pod
error: tls: failed to find any PEM data in certificate input
There’s also a part in the instructions that I’m not able to follow. It says:
Retrieve the certificate from the CSR:
kubectl get csr/john -o yaml
The certificate value is in Base64-encoded format under status.certificate
.
I don’t see any field like this.
I am using rke version 1.2.6 kubernetes 1.19.8.