kubernetes-vault
The Kubernetes-Vault project allows pods to automatically receive a Vault token using Vaults AppRole auth backend.
About this chart
Kubernetes-vault Helm Chart
Prerequisites Details
- Working Vault cluster configured per instructions found here
- Vault server API is available from Kubernetes pods
- A Vault token created for the AppRole backend
- Kubernetes 1.5
Chart Details
This chart will do the following:
- Allows pods to automatically receive a Vault token using Vault's AppRole auth backend.
Installing the Chart
To install the chart with the release name my-release:
$ helm install --name my-release <helm-repo>/kubernetes-vault --set vault.address=$your_vault_server --set vault.token=$your_vault_token
$ helm install --name my-release incubator/kubernetes-vault --set vault.address=$your_vault_server --set vault.token=$your_vault_token
Configuration
The following tables lists the configurable parameters of the consul chart and their default values.
| Parameter | Description | Default |
|---|---|---|
configMap.* | Maps directly to kubernetes-vault configuration | empty |
image | Container image name | boostport/kubernetes-vault |
imageTag | Container image tag | 0.5.2 |
imagePullPolicy | Container pull policy | Always |
replicaCount | k8s pod replicas | 3 |
app | k8s selector key | kubernetes-vault |
service.dummyPort | Dummy port to register pod with API. Not actually used. | 80 |
rbac.create | Should RBAC be created? | true |
serviceAccount.create | Should ServiceAccount be created? | false |
serviceAccount.name | ServiceAccount name to use (autogenerated if empty) | null |
resources.limits.cpu | CPU limit | 100m |
resources.limits.memory | Memory limit | 128Mi |
resources.requests.cpu | CPU resource request | 100m |
resources.requests.memory | Memory resource request | 128Mi |
Specify each parameter using the --set key=value[,key=value] argument to helm install.
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
Specify each parameter using the --set key=value[,key=value] argument to helm install.
$ helm install --name my-release -f values.yaml <helm-repo>/kubernetes-vault
Deploy kubernetes-vault with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubernetes-vault on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkubernetes-vault is pinned at v0.2.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply