Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (58 sloc) 2.03 KB
title description
Installation with Helm
How to install Azure Key Vault to Kubernetes with Helm

Make sure to check the requirements before installing.

Installing with Helm on Azure AKS

Create akv2k8s namespace:

kubectl create ns akv2k8s

Add Helm repository:

helm repo add spv-charts http://charts.spvapi.no
helm repo update

Install both Controller and Env-Injector:

helm install azure-key-vault-controller \
  spv-charts/azure-key-vault-controller \
  --namespace akv2k8s

helm install azure-key-vault-env-injector \
  spv-charts/azure-key-vault-env-injector \
  --set installCrd=false \
  --namespace akv2k8s

For more details about installation options, see the individual Helm charts:

Installing with Helm outside Azure AKS

When running inside Azure AKS, akv2k8s can use the AKS cluster credentials for authorizing with Azure Key Vault (default behavior). Outside Azure AKS - credentials (Azure Service Principal) must be provided by setting keyVault.customAuth=true. See Authentication for more details.

Create akv2k8s namespace:

kubectl create ns akv2k8s

Add Helm repository:

helm repo add spv-charts http://charts.spvapi.no
helm repo update

Install both Controller and Env-Injector:

helm install azure-key-vault-controller \
  spv-charts/azure-key-vault-controller \
   --namespace akv2k8s \
   --set keyVault.customAuth.enabled=true \
   --set env.AZURE_TENANT_ID=<tenant-id> \
   --set env.AZURE_CLIENT_ID=<client-id> \
   --set env.AZURE_CLIENT_SECRET=<client-secret>

helm install azure-key-vault-env-injector \
  spv-charts/azure-key-vault-env-injector \
  --namespace akv2k8s \
  --set installCrd=false \
  --set keyVault.customAuth.enabled=true \
  --set env.AZURE_TENANT_ID=<tenant-id> \
  --set env.AZURE_CLIENT_ID=<client-id> \
  --set env.AZURE_CLIENT_SECRET=<client-secret>
You can’t perform that action at this time.