Highly Available Vault Enterprise Disaster Recovery 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 disaster recovery 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 and enable disaster recovery replication.
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 Disaster Recovery Replication On Primary
With the initial clusters setup, we can now configure them for disaster recovery 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 Disaster Recovery Replication On Secondary
Using the token created in the last step, enable disaster recovery replication on the secondary:
Last, delete the remainder secondary pods and unseal them using the primary unseal token after Kubernetes reschedules them: