Skip to content

Instantly share code, notes, and snippets.

@abohmeed
Created June 1, 2020 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abohmeed/ba1abfa3991c19ca371969b67398f76a to your computer and use it in GitHub Desktop.
Save abohmeed/ba1abfa3991c19ca371969b67398f76a to your computer and use it in GitHub Desktop.
cat <<EOF | kubectl apply -f -
apiVersion: certificates.k8s.io/v1beta1
kind: CertificateSigningRequest
metadata:
name: tempcsr
spec:
request: $(cat server.csr | base64 | tr -d '\n')
groups:
- system:authenticated
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment