kubernetes-vault

by joaquinito2051

Helm chartv0.2.1App 0.5.2

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:

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.

ParameterDescriptionDefault
configMap.*Maps directly to kubernetes-vault configurationempty
imageContainer image nameboostport/kubernetes-vault
imageTagContainer image tag0.5.2
imagePullPolicyContainer pull policyAlways
replicaCountk8s pod replicas3
appk8s selector keykubernetes-vault
service.dummyPortDummy port to register pod with API. Not actually used.80
rbac.createShould RBAC be created?true
serviceAccount.createShould ServiceAccount be created?false
serviceAccount.nameServiceAccount name to use (autogenerated if empty)null
resources.limits.cpuCPU limit100m
resources.limits.memoryMemory limit128Mi
resources.requests.cpuCPU resource request100m
resources.requests.memoryMemory resource request128Mi

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkubernetes-vault is pinned at v0.2.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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