Skip to content

Instantly share code, notes, and snippets.

@eeganlf
Forked from initcron/vault_k8s_config.sh
Created July 28, 2023 23:36
Show Gist options
  • Save eeganlf/59cbab1e8400170824e2358c2909e318 to your computer and use it in GitHub Desktop.
Save eeganlf/59cbab1e8400170824e2358c2909e318 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