Search for underlying issues causing unhealthy Vault clusters. Check the Vault statefulset
and various pod logs to determine what is impacting the health of the Vault.
-
(
ncn-mw#
) View the Vaultstatefulset
.kubectl -n vault get statefulset --show-labels
Example output:
NAME READY AGE LABELS cray-vault 3/3 8d app.kubernetes.io/name=vault,vault_cr=cray-vault
-
(
ncn-mw#
) Check the pod logs for thebank-vaults
container for Vaultstatefulset
pods.kubectl logs -n vault cray-vault-0 --tail=-1 --prefix -c bank-vaults kubectl logs -n vault cray-vault-1 --tail=-1 --prefix -c bank-vaults kubectl logs -n vault cray-vault-0 --tail=-1 --prefix -c bank-vaults
-
(
ncn-mw#
) Check the Vault container logs within the pod.kubectl logs -n vault cray-vault-0 --tail=-1 --prefix -c vault kubectl logs -n vault cray-vault-1 --tail=-1 --prefix -c vault kubectl logs -n vault cray-vault-2 --tail=-1 --prefix -c vault
-
(
ncn-mw#
) Check the Vault operator pod logs using ephemerally named pods.kubectl logs -n vault cray-vault-operator-7dbbdbb68b-zvg2g --tail=-1 --prefix