Sometimes customers who deploy Vault on Kubernetes, specially on the cloud like GKE or EKS, and Vault and try to auto unseal or the admin tries to unseal manually, they'll see
context deadline exceedederror.
vault statuswould throw
Error checking seal status: context deadline exceeded
vault operator initwould give
Error initializing: context deadline exceeded
- See more example errors here: https://github.com/hashicorp/vault/issues/10034
- Basically in k8s, vault initialization is very slow and default timeout of 60s not enough.
VAULT_CLIENT_TIMEOUTenvironment variable value. Vault initialization in Kubernetes is slow and the default timeout of 60s might not be sufficient.
For more information about this environment variable, click here.