Akhil Addagulla:
Thanks for all the help Radoslaw
Radoslaw Czajkowski:
maybe you didn’t put encrypted request in the first run
Akhil Addagulla:
Yes, my bad. Thanks for the help.
Lakshmi Narayana Muvvala:
from yaml, remove expirationSeconds: 86400 # one day
unnivkn:
Hi @Akhil Addagulla please save this piece of code for your reference. Just run this code as it is.
cat <<EOF | kubectl apply -f -
apiVersion: http://certificates.k8s.io/v1|certificates.k8s.io/v1
kind: CertificateSigningRequest
metadata:
name: akshay
spec:
groups:
- system:authenticated
request: $(cat akshay.csr | base64 | tr -d “\n”)
signerName: http://kubernetes.io/kube-apiserver-client|kubernetes.io/kube-apiserver-client
usages: - client auth
EOF