csi-vault

by AppsCode Inc.

Helm chartv0.4.0-rc.0App v0.4.0-rc.0Verified publisher

HashiCorp Vault CSI Driver for Kubernetes

About this chart

CSI Vault

CSI Vault by AppsCode - Kubernetes CSI Driver for HashiCorp Vault

TL;DR;

$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm install csi-vault appscode/csi-vault -n kubevault

Introduction

This chart deploys a Vault CSI Driver on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes v1.16+
  • --allow-privileged flag must be set to true for both the API server and the kubelet
  • (If you use Docker) The Docker daemon of the cluster nodes must allow shared mounts
  • Pre-installed HashiCorp Vault server.

Installing the Chart

To install the chart with the release name csi-vault:

$ helm install csi-vault appscode/csi-vault -n kubevault

The command deploys a Vault CSI Driver on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the csi-vault:

$ helm delete csi-vault -n kubevault

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the csi-vault chart and their default values.

ParameterDescriptionDefault
nameOverrideOverrides name template""
fullnameOverrideOverrides fullname template""
attacher.nameName of the attacher containerattacher
attacher.registryDocker registry used to pull CSI attacher imagek8s.gcr.io/sig-storage
attacher.repositoryCSI attacher container imagecsi-attacher
attacher.tagCSI attacher container image tagv3.1.0
attacher.pullPolicyCSI attacher container image pull policyIfNotPresent
plugin.nameName of the CSI driver containerplugin
plugin.registryDocker registry used to pull CSI driver imagekubevault
plugin.repositoryCSI driver container imagecsi-vault
plugin.tagCSI driver container image tagv0.4.0-rc.0
plugin.pullPolicyCSI driver container image pull policyIfNotPresent
plugin.securityContextSecurity options the CSI driver container should run with{"allowPrivilegeEscalation":true,"capabilities":{"add":["SYS_ADMIN"]},"privileged":true}
provisioner.nameName of the provisioner containerprovisioner
provisioner.registryDocker registry used to pull CSI provisioner imagek8s.gcr.io/sig-storage
provisioner.repositoryCSI provisioner container imagecsi-provisioner
provisioner.tagCSI provisioner container image tagv2.2.0
provisioner.pullPolicyCSI provisioner container image pull policyIfNotPresent
nodeRegistrar.nameName of the CSI driver node registrar containernode-registrar
nodeRegistrar.registryDocker registry used to pull CSI driver node registrar imagek8s.gcr.io/sig-storage
nodeRegistrar.repositoryCSI driver node registrar container imagecsi-node-driver-registrar
nodeRegistrar.tagCSI driver node registrar container image tagv2.1.0
nodeRegistrar.pullPolicyCSI driver node registrar container image pull policyIfNotPresent
driverNameVault CSI driver namesecrets.csi.kubevault.com
pluginAddressVault CSI driver endpoint address/csi/csi.sock
pluginDirVault CSI driver plugin directory/csi
components.controllerName of controller driver componentcontroller
components.nodeName of node driver componentnode
criticalAddonIf true, installs CSI driver as critical addonfalse
logLevelLog level for operator3
nodeSelectorNode labels for pod assignment{"beta.kubernetes.io/arch":"amd64","beta.kubernetes.io/os":"linux"}
rbac.createSpecifies whether RBAC resources should be createdtrue
apiserver.useKubeapiserverFqdnForAksIf true, uses kube-apiserver FQDN for AKS cluster to workaround https://github.com/Azure/AKS/issues/522 (default true)true
apiserver.healthcheck.enabledhealthcheck configures the readiness and liveliness probes for the CSI driver pod.true
enableAnalyticsIf true, sends usage analyticstrue
monitoring.agentName of monitoring agent (either "prometheus.io/operator" or "prometheus.io/builtin")"none"

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example:

$ helm install csi-vault appscode/csi-vault -n kubevault --set attacher.name=attacher

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example:

$ helm install csi-vault appscode/csi-vault -n kubevault --values values.yaml

Deploy csi-vault with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has csi-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 chartcsi-vault is pinned at v0.4.0-rc.0 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