khuedoan-homelab/scripts/vault-root-token
2022-07-21 01:58:00 +07:00

6 lines
174 B
Bash
Executable File

#!/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