Helm chart to deploy a ready-to-go Vault server on Red Hat OpenShift.
This chart extends the official Vault Helm Chart to include an init script which does the following:
- Initialize Vault server
- Save recovery keys and root key to k8s secret
- Unseal Vault server pods using the k8s secret on pod startup
- Configure Kubernetes auth engine for the local cluster
- Add a policy that allows k8s namespaces to only access secrets prefixed with the namespace name
For HA deployments only:
- Join Vault server replicas with Raft
To deploy a standalone Vault server (1 replica), clone this repo and run:
# Replace VAULT_SERVER_HOSTNAME with the hostname Vault should be deployed to
export VAULT_SERVER_HOSTNAME="vault.apps.change-me.com"
make install
To deploy a highly-available Vault server (3 replicas), clone this repo and run:
# Replace VAULT_SERVER_HOSTNAME with the hostname Vault should be deployed to
export VAULT_SERVER_HOSTNAME="vault.apps.change-me.com"
make install-ha