khuedoan-homelab/scripts/vault-root-token

6 lines
172 B
Plaintext
Raw Normal View History

2022-05-12 12:12:45 +07:00
#!/bin/sh
# Get Vault root token
export KUBECONFIG=./metal/kubeconfig.yaml
kubectl get secrets vault-unseal-keys -n vault -o jsonpath={.data.vault-root} | base64 --decode