feat(scripts): get Vault root token

This commit is contained in:
Khue Doan 2022-05-12 12:12:45 +07:00
parent f721976b5b
commit e0a3f374e3

5
scripts/vault-root-token Executable file
View File

@ -0,0 +1,5 @@
#!/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