vault-operator

by alekc

Helm chartv1.26.2App v1.24.1Verified publisher

Kubernetes operator for Hashicorp Vault

About this chart

vault-operator

Kubernetes operator for Hashicorp Vault

Homepage: https://bank-vaults.dev

TL;DR;

helm install --generate-name --wait oci://ghcr.io/bank-vaults/helm-charts/vault-operator

Values

The following table lists the configurable parameters of the Helm chart.

ParameterTypeDefaultDescription
replicaCountint1Number of replicas (pods) to launch.
pdb.createbooltrueCreate pod disruption budget if replicaCount > 1.
pdb.minAvailableint1Min available for PDB.
image.repositorystring"ghcr.io/bank-vaults/vault-operator"Name of the image repository to pull the container image from.
image.pullPolicystring"IfNotPresent"Image pull policy for updating already existing images on a node.
image.tagstring""Image tag override for the default value (chart appVersion).
image.imagePullSecretslist[]Reference to one or more secrets to be used when pulling images (from private registries). (global.imagePullSecrets is also supported)
image.bankVaultsRepositorystring""Bank-Vaults image repository Deprecated: use bankVaults.image.repository instead.
image.bankVaultsTagstring""Bank-Vaults image tag Deprecated: use bankVaults.image.tag instead.
bankVaults.image.repositorystring"ghcr.io/bank-vaults/bank-vaults"Bank-Vaults image repository.
bankVaults.image.tagstring"v1.31.2"Bank-Vaults image tag (pinned to supported Bank-Vaults version).
nameOverridestring""A name in place of the chart name for app: labels.
fullnameOverridestring""A name to substitute for the full names of resources.
watchNamespacestring""The namespace where the operator watches for vault CR objects. If not defined all namespaces are watched.
syncPeriodstring"1m"
crdAnnotationsobject{}Annotations to be added to CRDs.
labelsobject{}Labels to be added to deployments.
podLabelsobject{}Labels to be added to pods.
podAnnotationsobject{}Annotations to be added to pods.
serviceAccount.createbooltrueEnable service account creation.
serviceAccount.annotationsobject{}Annotations to be added to the service account.
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template.
service.annotationsobject{}Annotations to be added to the service.
service.typestring"ClusterIP"Kubernetes service type.
service.namestring""The name of the service to use. If not set, a name is generated using the fullname template.
service.externalPortint80
service.internalPortint8080
resourcesobject{}Container resource requests and limits. See the API reference for details.
nodeSelectorobject{}Node selector configuration.
tolerationslist[]Tolerations for node taints. See the API reference for details.
affinityobject{}Affinity configuration. See the API reference for details.
priorityClassNamestring""Specify a priority class name to set pod priority.
podSecurityContextobject{}Pod security context. See the API reference for details.
securityContextobject{}Container security context. See the API reference for details.
terminationGracePeriodSecondsint10
livenessProbe.initialDelaySecondsint60
livenessProbe.periodSecondsint10
livenessProbe.successThresholdint1
livenessProbe.timeoutSecondsint1
readinessProbe.periodSecondsint10
readinessProbe.successThresholdint1
readinessProbe.timeoutSecondsint1
psp.enabledboolfalse
psp.vaultSAstring"vault"
monitoring.serviceMonitor.enabledboolfalseEnable Prometheus ServiceMonitor. See the documentation and the API reference for details.
monitoring.serviceMonitor.additionalLabelsobject{}
monitoring.serviceMonitor.metricRelabelingslist[]
monitoring.serviceMonitor.relabelingslist[]

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

Deploy vault-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has vault-operator 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 chartvault-operator is pinned at v1.26.2 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