Skip to content

Instantly share code, notes, and snippets.

@initcron
Created October 22, 2021 13:18
Show Gist options
  • Save initcron/602812349bbb26c2d8d37b1c40313285 to your computer and use it in GitHub Desktop.
Save initcron/602812349bbb26c2d8d37b1c40313285 to your computer and use it in GitHub Desktop.
vault write auth/kubernetes/config \
kubernetes_host="https://$KUBERNETES_PORT_443_TCP_ADDR:443" \
token_reviewer_jwt="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \
kubernetes_ca_cert=@/var/run/secrets/kubernetes.io/serviceaccount/ca.crt \
issuer="https://kubernetes.default.svc.cluster.local"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment