Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 2.35 KB

File metadata and controls

28 lines (22 loc) · 2.35 KB

Vault init controller

A controller that watches for vault pods and unseals the vault server and also restores a backup if already present for a tenant.

Configuration

The GlueOps vault init controller project utilizes environment variables to configure its behavior. The following table outlines the environment variables and their default values if not explicitly set:

Environment Variable Description Default Value
NAMESPACE Kubernetes namespace in which Vault is deployed. glueops-core-vault
VAULT_STS_NAME The name of the Kubernetes statefulset for Vault. vault
VAULT_LABEL_SELECTOR The label selector for the vault pods . app.kubernetes.io/name=vault
VAULT_K8S_SERVICE_NAME The name of the Kubernetes service for Vault. vault-internal
RECONCILE_PERIOD Interval (in seconds) for secret reconciliation. 10
SERVICE_PORT Port number on which Vault service is exposed. 8200
VAULT_S3_BUCKET The s3 bucket to store the vault unseal keys . vault-backend-glueops
VAULT_SECRET_FILE The file path in the s3 bucket. vault_access.json
PAUSE_RECONCILE To pause the reconcile of the controller. false
VAULT_KEY_SHARES No of keys to be generated. 1
VAULT_KEY_THRESHOLD No of Keys required to unseal vault 1
ENABLE_RESTORE Start vault with already available backup false
CAPTAIN_DOMAIN Glueops captain domain which is the bucket name None
BACKUP_PREFIX backup prefix path after the bucket_name. hashicorp-vault-backups

Prerequisite

The VM where the applicaiton is running is expected to have the permissions to write to the s3 bucket that is mentioned in VAULT_S3_BUCKET env variable above.