How To Setup Hashicorp Vault HA On a Kubernetes Cluster

Part 1 of the Three part series on Hashicorp Vault

Neil Shah
3 min readSep 19, 2023

--

Created by the author

For this tutorial we are going to use a minikube cluster locally, you do the same steps in any Kubernetes cluster be it managed or self-provisioned.

With the below command, you can easily install minikube on a local Mac and ensure you have Docker pre-installed.

brew install minikube
minikube start
Source: Author’s local mac terminal

Check the status of nodes and pods after minikube has started.

kubectl get nodes
kubectl get pods -A #A means pods from all namespaces

Now, let's helm as we will be using helm to install a HA vault cluster on minikube.

brew install helm

Steps for Hashicorp Vault

kubectl create ns vault
helm repo add hashicorp https://helm.releases.hashicorp.com
helm install vault - namespace vault - set server.ha.enabled=true,server.ha.raft.enabled=true,server.ha.replicas=1 hashicorp/vault
#Wait for all the pods to come in running state
kubectl get all -n vault

--

--

Neil Shah

200K+ Views | DevOps | Philosophy | Cinema | Psychology | 👉🏻 Support: https://ko-fi.com/xshahneil