- Hashicorp Vault
- Kubernetes minikube can be used
- Dapr
Dapr and Vault Kubernetes architecture of our application
kubectl create ns dapr-vault
# Add Dapr Repo
helm repo add dapr https://dapr.github.io/helm-charts/
# Install Dapr
helm upgrade --install dapr dapr/dapr \
--version=1.12 \
--namespace dapr-vault \
--wait
# Verify Dapr
kubectl get pods --namespace dapr-vault
# Add Hashicorp Vault Repo
helm repo add hashicorp https://helm.releases.hashicorp.com
# Install Hashicorp Vault
helm upgrade --install vault hashicorp/vault \
--version=0.25.0 \
--namespace dapr-vault \
--wait
# Verify Hashicorp Vault
kubectl get pods --namespace dapr-vault
# Initialize Vault Server
kubectl exec -n dapr-vault --stdin=true --tty=true vault-0 -- vault operator init
# Unseal the Vault server
kubectl exec -n dapr-vault --stdin=true --tty=true vault-0 -- vault operator unseal # key-1
kubectl exec -n dapr-vault --stdin=true --tty=true vault-0 -- vault operator unseal # key-2
kubectl exec -n dapr-vault --stdin=true --tty=true vault-0 -- vault operator unseal # key-3