Highly available Vault enterprise performance clusters with integrated storage (Raft)
Important Note: This chart is not compatible with Helm 2. Please use Helm 3.6+ with this chart.
The following is an example of creating a performance cluster using Vault Helm.
For more information on Disaster Recovery, see the official documentation.
For license configuration refer to Running Vault Enterprise.
Primary cluster
First, create the primary cluster:
Next, initialize and unseal vault-primary-0
pod:
Finally, join the remaining pods to the Raft cluster and unseal them. The pods will need to communicate directly so we'll configure the pods to use the internal service provided by the Helm chart:
To verify if the Raft cluster has successfully been initialized, run the following.
First, login using the root
token on the vault-primary-0
pod:
Next, list all the raft peers:
Secondary cluster
With the primary cluster created, next create a secondary cluster.
Next, initialize and unseal vault-secondary-0
pod:
Finally, join the remaining pods to the Raft cluster and unseal them. The pods will need to communicate directly so we'll configure the pods to use the internal service provided by the Helm chart:
To verify if the Raft cluster has successfully been initialized, run the following.
First, login using the root
token on the vault-secondary-0
pod:
Next, list all the raft peers:
Enable performance replication on primary
With the initial clusters setup, we can now configure them for Performance Replication.
First, on the primary cluster, enable replication:
Next, create a token the secondary cluster will use to configure replication:
The token in the output will be used when configuring the secondary cluster.
Enable performance replication on secondary
Using the token created in the last step, enable Performance Replication on the secondary:
Last, delete the remainder secondary pods and unseal them using the primary unseal token after Kubernetes reschedules them: