Bitnami package for HashiCorp Vault

Vault is a tool for securely managing and accessing secrets using a unified interface. Features secure storage, dynamic secrets, data encryption and revocation.

Overview of HashiCorp Vault

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

TL;DR

helm install my-release oci://REGISTRY_NAME/REPOSITORY_NAME/vault

Note: You need to substitute the placeholders REGISTRY_NAME and REPOSITORY_NAME with a reference to your Helm chart registry and repository.

Introduction

This chart bootstraps a HashiCorp Vault deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.23+
  • Helm 3.8.0+

Installing the Chart

To install the chart with the release name my-release:

helm install my-release my-repo/vault

The command deploys vault on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Configuration and installation details

Resource requests and limits

Bitnami charts allow setting resource requests and limits for all containers inside the chart deployment. These are inside the resources value (check parameter table). Setting requests is essential for production workloads and these should be adapted to your specific use case.

To make this process easier, the chart contains the resourcesPreset values, which automatically sets the resources section according to different presets. Check these presets in the bitnami/common chart. However, in production workloads using resourcePreset is discouraged as it may not fully adapt to your specific needs. Find more information on container resource management in the official Kubernetes documentation.

Rolling VS Immutable tags

It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image.

Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.

Ingress

This chart provides support for Ingress resources. If you have an ingress controller installed on your cluster, such as nginx-ingress-controller or contour you can utilize the ingress controller to serve your application.To enable Ingress integration, set server.ingress.enabled to true.

The most common scenario is to have one host name mapped to the deployment. In this case, the server.ingress.hostname property can be used to set the host name. The server.ingress.tls parameter can be used to add the TLS configuration for this host.

However, it is also possible to have more than one host. To facilitate this, the server.ingress.extraHosts parameter (if available) can be set with the host names specified as an array. The server.ingress.extraTLS parameter (if available) can also be used to add the TLS configuration for extra hosts.

NOTE: For each host specified in the server.ingress.extraHosts parameter, it is necessary to set a name, path, and any annotations that the Ingress controller should know about. Not all annotations are supported by all Ingress controllers, but this annotation reference document lists the annotations supported by many popular Ingress controllers.

Adding the TLS parameter (where available) will cause the chart to generate HTTPS URLs, and the application will be available on port 443. The actual TLS secrets do not have to be generated by this chart. However, if TLS is enabled, the Ingress record will not work until the TLS secret exists.

Learn more about Ingress controllers.

TLS secrets

This chart facilitates the creation of TLS secrets for use with the Ingress controller (although this is not mandatory). There are several common use cases:

  • Generate certificate secrets based on chart parameters.
  • Enable externally generated certificates.
  • Manage application certificates via an external service (like cert-manager).
  • Create self-signed certificates within the chart (if supported).

In the first two cases, a certificate and a key are needed. Files are expected in .pem format.

Here is an example of a certificate file:

NOTE: There may be more than one certificate if there is a certificate chain.

-----BEGIN CERTIFICATE-----
MIID6TCCAtGgAwIBAgIJAIaCwivkeB5EMA0GCSqGSIb3DQEBCwUAMFYxCzAJBgNV
...
jScrvkiBO65F46KioCL9h5tDvomdU1aqpI/CBzhvZn1c0ZTf87tGQR8NK7v7
-----END CERTIFICATE-----

Here is an example of a certificate key:

-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAvLYcyu8f3skuRyUgeeNpeDvYBCDcgq+LsWap6zbX5f8oLqp4
...
wrj2wDbCDCFmfqnSJ+dKI3vFLlEz44sAV8jX/kd4Y6ZTQhlLbYc=
-----END RSA PRIVATE KEY-----
  • If using Helm to manage the certificates based on the parameters, copy these values into the certificate and key values for a given *.ingress.secrets entry.
  • If managing TLS secrets separately, it is necessary to create a TLS secret with name INGRESS_HOSTNAME-tls (where INGRESS_HOSTNAME is a placeholder to be replaced with the hostname you set using the *.ingress.hostname parameter).
  • If your cluster has a cert-manager add-on to automate the management and issuance of TLS certificates, add to *.ingress.annotations the corresponding ones for cert-manager.
  • If using self-signed certificates created by Helm, set both *.ingress.tls and *.ingress.selfSigned to true.

Additional environment variables

In case you want to add extra environment variables (useful for advanced operations like custom init scripts), you can use the extraEnvVars property inside the server, csiProvider and injector sections.

server:
  extraEnvVars:
    - name: LOG_LEVEL
      value: error

Alternatively, you can use a ConfigMap or a Secret with the environment variables. To do so, use the extraEnvVarsCM or the extraEnvVarsSecret values inside the server, csiProvider and injector sections.

Sidecars

If additional containers are needed in the same pod as vault (such as additional metrics or logging exporters), they can be defined using the sidecars parameter inside the server, csiProvider and injector sections.

sidecars:
- name: your-image-name
  image: your-image
  imagePullPolicy: Always
  ports:
  - name: portname
    containerPort: 1234

If these sidecars export extra ports, extra port definitions can be added using the service.extraPorts parameter (where available), as shown in the example below:

service:
  extraPorts:
  - name: extraPort
    port: 11311
    targetPort: 11311

NOTE: This Helm chart already includes sidecar containers for the Prometheus exporters (where applicable). These can be activated by adding the --enable-metrics=true parameter at deployment time. The sidecars parameter should therefore only be used for any extra sidecar containers.

If additional init containers are needed in the same pod, they can be defined using the initContainers parameter. Here is an example:

initContainers:
  - name: your-image-name
    image: your-image
    imagePullPolicy: Always
    ports:
      - name: portname
        containerPort: 1234

Learn more about sidecar containers and init containers.

Pod affinity

This chart allows you to set your custom affinity using the affinity parameter. Find more information about Pod affinity in the kubernetes documentation.

As an alternative, use one of the preset configurations for pod affinity, pod anti-affinity, and node affinity available at the bitnami/common chart. To do so, set the podAffinityPreset, podAntiAffinityPreset, or nodeAffinityPreset parameters inside the server, csiProvider and injector sections.

Persistence

The Bitnami vault image stores the vault data and configurations at the /bitnami path of the container. Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube.

Parameters

Global parameters

Name Description Value
global.imageRegistry Global Docker image registry ""
global.imagePullSecrets Global Docker registry secret names as an array []
global.defaultStorageClass Global default StorageClass for Persistent Volume(s) ""
global.storageClass DEPRECATED: use global.defaultStorageClass instead ""
global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation) auto

Common parameters

Name Description Value
kubeVersion Override Kubernetes version ""
nameOverride String to partially override common.names.name ""
fullnameOverride String to fully override common.names.fullname ""
namespaceOverride String to fully override common.names.namespace ""
commonLabels Labels to add to all deployed objects {}
commonAnnotations Annotations to add to all deployed objects {}
clusterDomain Kubernetes cluster domain name cluster.local
extraDeploy Array of extra objects to deploy with the release []
diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden) false
diagnosticMode.command Command to override all containers in the deployment ["sleep"]
diagnosticMode.args Args to override all containers in the deployment ["infinity"]

Vault Server Parameters

Name Description Value
server.enabled Enable Vault Server true
server.image.registry Vault Server image registry REGISTRY_NAME
server.image.repository Vault Server image repository REPOSITORY_NAME/vault
server.image.digest Vault Server image digest in the way sha256:aa…. Please note this parameter, if set, will override the tag image tag (immutable tags are recommended) ""
server.image.pullPolicy Vault Server image pull policy IfNotPresent
server.image.pullSecrets Vault Server image pull secrets []
server.image.debug Enable Vault Server image debug mode false
server.replicaCount Number of Vault Server replicas to deploy 1
server.podManagementPolicy Pod management policy Parallel
server.containerPorts.http Vault Server http container port 8200
server.containerPorts.internal Vault Server internal (HTTPS) container port 8201
server.livenessProbe.enabled Enable livenessProbe on Vault Server containers false
server.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe 5
server.livenessProbe.periodSeconds Period seconds for livenessProbe 10
server.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe 5
server.livenessProbe.failureThreshold Failure threshold for livenessProbe 5
server.livenessProbe.successThreshold Success threshold for livenessProbe 1
server.readinessProbe.enabled Enable readinessProbe on Vault Server containers true
server.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe 5
server.readinessProbe.periodSeconds Period seconds for readinessProbe 10
server.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe 5
server.readinessProbe.failureThreshold Failure threshold for readinessProbe 5
server.readinessProbe.successThreshold Success threshold for readinessProbe 1
server.startupProbe.enabled Enable startupProbe on Vault Server containers false
server.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe 5
server.startupProbe.periodSeconds Period seconds for startupProbe 10
server.startupProbe.timeoutSeconds Timeout seconds for startupProbe 5
server.startupProbe.failureThreshold Failure threshold for startupProbe 5
server.startupProbe.successThreshold Success threshold for startupProbe 1
server.customLivenessProbe Custom livenessProbe that overrides the default one {}
server.customReadinessProbe Custom readinessProbe that overrides the default one {}
server.customStartupProbe Custom startupProbe that overrides the default one {}
server.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if server.resources is set (server.resources is recommended for production). nano
server.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads) {}
server.podSecurityContext.enabled Enabled Vault Server pods’ Security Context true
server.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy Always
server.podSecurityContext.sysctls Set kernel settings using the sysctl interface []
server.podSecurityContext.supplementalGroups Set filesystem extra groups []
server.podSecurityContext.fsGroup Set Vault Server pod’s Security Context fsGroup 1001
server.containerSecurityContext.enabled Enabled containers’ Security Context true
server.containerSecurityContext.seLinuxOptions Set SELinux options in container nil
server.containerSecurityContext.runAsUser Set containers’ Security Context runAsUser 1001
server.containerSecurityContext.runAsGroup Set containers’ Security Context runAsGroup 1001
server.containerSecurityContext.runAsNonRoot Set container’s Security Context runAsNonRoot true
server.containerSecurityContext.privileged Set container’s Security Context privileged false
server.containerSecurityContext.readOnlyRootFilesystem Set container’s Security Context readOnlyRootFilesystem true
server.containerSecurityContext.allowPrivilegeEscalation Set container’s Security Context allowPrivilegeEscalation false
server.containerSecurityContext.capabilities.drop List of capabilities to be dropped ["ALL"]
server.containerSecurityContext.seccompProfile.type Set container’s Security Context seccomp profile RuntimeDefault
server.command Override default container command (useful when using custom images) []
server.args Override default container args (useful when using custom images) []
server.automountServiceAccountToken Mount Service Account token in pod true
server.hostAliases Vault Server pods host aliases []
server.config Vault server configuration (evaluated as a template) ""
server.existingConfigMap name of a ConfigMap with existing configuration for the server ""
server.podLabels Extra labels for Vault Server pods {}
server.podAnnotations Annotations for Vault Server pods {}
server.podAffinityPreset Pod affinity preset. Ignored if server.affinity is set. Allowed values: soft or hard ""
server.podAntiAffinityPreset Pod anti-affinity preset. Ignored if server.affinity is set. Allowed values: soft or hard soft
server.pdb.create Enable/disable a Pod Disruption Budget creation true
server.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled ""
server.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to 1 if both server.pdb.minAvailable and server.pdb.maxUnavailable are empty. ""
server.nodeAffinityPreset.type Node affinity preset type. Ignored if server.affinity is set. Allowed values: soft or hard ""
server.nodeAffinityPreset.key Node label key to match. Ignored if server.affinity is set ""
server.nodeAffinityPreset.values Node label values to match. Ignored if server.affinity is set []
server.affinity Affinity for Vault Server pods assignment {}
server.nodeSelector Node labels for Vault Server pods assignment {}
server.tolerations Tolerations for Vault Server pods assignment []
server.updateStrategy.type Vault Server statefulset strategy type RollingUpdate
server.priorityClassName Vault Server pods’ priorityClassName ""
server.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template []
server.schedulerName Name of the k8s scheduler (other than default) for Vault Server pods ""
server.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully ""
server.lifecycleHooks for the Vault Server container(s) to automate configuration before or after startup {}
server.extraEnvVars Array with extra environment variables to add to Vault Server nodes []
server.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Vault Server nodes ""
server.extraEnvVarsSecret Name of existing Secret containing extra env vars for Vault Server nodes ""
server.extraVolumes Optionally specify extra list of additional volumes for the Vault Server pod(s) []
server.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Vault Server container(s) []
server.sidecars Add additional sidecar containers to the Vault Server pod(s) []
server.initContainers Add additional init containers to the Vault Server pod(s) []

Vault Server Traffic Exposure Parameters

Name Description Value
server.service.general.type Vault Server service type ClusterIP
server.service.general.ports.http Vault Server service HTTP port 8200
server.service.general.ports.internal Vault Server internal port 8201
server.service.general.nodePorts.http Node port for HTTP ""
server.service.general.nodePorts.internal Node port for HTTP ""
server.service.general.clusterIP Vault Server service Cluster IP ""
server.service.general.loadBalancerIP Vault Server service Load Balancer IP ""
server.service.general.loadBalancerSourceRanges Vault Server service Load Balancer sources []
server.service.general.externalTrafficPolicy Vault Server service external traffic policy Cluster
server.service.general.annotations Additional custom annotations for Vault Server service {}
server.service.general.extraPorts Extra ports to expose in Vault Server service (normally used with the sidecars value) []
server.service.general.sessionAffinity Control where web requests go, to the same pod or round-robin None
server.service.general.sessionAffinityConfig Additional settings for the sessionAffinity {}
server.service.active.type Vault Server service type ClusterIP
server.service.active.ports.http Vault Server service HTTP port 8200
server.service.active.ports.internal Vault Server internal port 8201
server.service.active.nodePorts.http Node port for HTTP ""
server.service.active.nodePorts.internal Node port for HTTP ""
server.service.active.clusterIP Vault Server service Cluster IP ""
server.service.active.loadBalancerIP Vault Server service Load Balancer IP ""
server.service.active.loadBalancerSourceRanges Vault Server service Load Balancer sources []
server.service.active.externalTrafficPolicy Vault Server service external traffic policy Cluster
server.service.active.annotations Additional custom annotations for Vault Server service {}
server.service.active.extraPorts Extra ports to expose in Vault Server service (normally used with the sidecars value) []
server.service.active.sessionAffinity Control where web requests go, to the same pod or round-robin None
server.service.active.sessionAffinityConfig Additional settings for the sessionAffinity {}
server.networkPolicy.enabled Specifies whether a NetworkPolicy should be created true
server.networkPolicy.kubeAPIServerPorts List of possible endpoints to kube-apiserver (limit to your cluster settings to increase security) []
server.networkPolicy.allowExternal Don’t require server label for connections true
server.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations. true
server.networkPolicy.extraIngress Add extra ingress rules to the NetworkPolicy []
server.networkPolicy.extraEgress Add extra ingress rules to the NetworkPolicy []
server.networkPolicy.ingressNSMatchLabels Labels to match to allow traffic from other namespaces {}
server.networkPolicy.ingressNSPodMatchLabels Pod labels to match to allow traffic from other namespaces {}
server.ingress.enabled Enable ingress record generation for Vault false
server.ingress.pathType Ingress path type ImplementationSpecific
server.ingress.apiVersion Force Ingress API version (automatically detected if not set) ""
server.ingress.hostname Default host for the ingress record vault.local
server.ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) ""
server.ingress.path Default path for the ingress record /
server.ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. {}
server.ingress.tls Enable TLS configuration for the host defined at server.ingress.hostname parameter false
server.ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm false
server.ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record []
server.ingress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host []
server.ingress.extraTls TLS configuration for additional hostname(s) to be covered with this ingress record []
server.ingress.secrets Custom TLS certificates as secrets []
server.ingress.extraRules Additional rules to be covered with this ingress record []

Vault Server RBAC Parameters

Name Description Value
server.rbac.create Specifies whether RBAC resources should be created true
server.serviceAccount.create Specifies whether a ServiceAccount should be created true
server.serviceAccount.name The name of the ServiceAccount to use. ""
server.serviceAccount.annotations Additional Service Account annotations (evaluated as a template) {}
server.serviceAccount.automountServiceAccountToken Automount service account token for the server service account false

Source Controller Persistence Parameters

Name Description Value
server.persistence.enabled Enable persistence using Persistent Volume Claims true
server.persistence.mountPath Persistent Volume mount root path /bitnami/vault/data
server.persistence.storageClass Persistent Volume storage class ""
server.persistence.accessModes Persistent Volume access modes []
server.persistence.size Persistent Volume size 10Gi
server.persistence.dataSource Custom PVC data source {}
server.persistence.annotations Annotations for the PVC {}
server.persistence.selector Selector to match an existing Persistent Volume (this value is evaluated as a template) {}
server.persistence.existingClaim The name of an existing PVC to use for persistence ""
server.persistence.extraVolumeClaimTemplates Add additional VolumeClaimTemplates for enabling any plugins or any other purpose to the Vault Server pod(s) []

Vault Server Metrics Parameters

Name Description Value
server.metrics.enabled Enable the export of Prometheus metrics false
server.metrics.annotations Annotations for the server service in order to scrape metrics {}
server.metrics.serviceMonitor.enabled if true, creates a Prometheus Operator ServiceMonitor (also requires metrics.enabled to be true) false
server.metrics.serviceMonitor.namespace Namespace in which Prometheus is running ""
server.metrics.serviceMonitor.annotations Additional custom annotations for the ServiceMonitor {}
server.metrics.serviceMonitor.labels Extra labels for the ServiceMonitor {}
server.metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in Prometheus ""
server.metrics.serviceMonitor.honorLabels honorLabels chooses the metric’s labels on collisions with target labels false
server.metrics.serviceMonitor.interval Interval at which metrics should be scraped. ""
server.metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended ""
server.metrics.serviceMonitor.metricRelabelings Specify additional relabeling of metrics []
server.metrics.serviceMonitor.relabelings Specify general relabeling []
server.metrics.serviceMonitor.selector Prometheus instance selector labels {}

Vault CSI Provider Parameters

Name Description Value
csiProvider.enabled Enable Vault CSI Provider false
csiProvider.image.registry Vault CSI Provider image registry REGISTRY_NAME
csiProvider.image.repository Vault CSI Provider image repository REPOSITORY_NAME/vault-csi-provider
csiProvider.image.digest Vault CSI Provider image digest in the way sha256:aa…. Please note this parameter, if set, will override the tag image tag (immutable tags are recommended) ""
csiProvider.image.pullPolicy Vault CSI Provider image pull policy IfNotPresent
csiProvider.image.pullSecrets Vault CSI Provider image pull secrets []
csiProvider.image.debug Enable Vault CSI Provider image debug mode false
csiProvider.config Vault CSI Provider configuration (evaluated as a template) ""
csiProvider.existingConfigMap name of a ConfigMap with existing configuration for the CSI Provider ""
csiProvider.secretStoreHostPath Path to the host CSI Provider folder /etc/kubernetes/secrets-store-csi-providers
csiProvider.automountServiceAccountToken Mount Service Account token in pod true
csiProvider.hostAliases Vault CSI Provider pods host aliases []
csiProvider.podLabels Extra labels for Vault CSI Provider pods {}
csiProvider.podAnnotations Annotations for Vault CSI Provider pods {}
csiProvider.podAffinityPreset Pod affinity preset. Ignored if csiProvider.affinity is set. Allowed values: soft or hard ""
csiProvider.podAntiAffinityPreset Pod anti-affinity preset. Ignored if csiProvider.affinity is set. Allowed values: soft or hard soft
csiProvider.nodeAffinityPreset.type Node affinity preset type. Ignored if csiProvider.affinity is set. Allowed values: soft or hard ""
csiProvider.nodeAffinityPreset.key Node label key to match. Ignored if csiProvider.affinity is set ""
csiProvider.nodeAffinityPreset.values Node label values to match. Ignored if csiProvider.affinity is set []
csiProvider.affinity Affinity for Vault CSI Provider pods assignment {}
csiProvider.nodeSelector Node labels for Vault CSI Provider pods assignment {}
csiProvider.tolerations Tolerations for Vault CSI Provider pods assignment []
csiProvider.updateStrategy.type Vault CSI Provider statefulset strategy type RollingUpdate
csiProvider.priorityClassName Vault CSI Provider pods’ priorityClassName ""
csiProvider.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template []
csiProvider.schedulerName Name of the k8s scheduler (other than default) for Vault CSI Provider pods ""
csiProvider.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully ""
csiProvider.extraVolumes Optionally specify extra list of additional volumes for the Vault CSI Provider pod(s) []
csiProvider.sidecars Add additional sidecar containers to the Vault CSI Provider pod(s) []
csiProvider.initContainers Add additional init containers to the Vault CSI Provider pod(s) []
csiProvider.podSecurityContext.enabled Enabled CSI Provider pods’ Security Context true
csiProvider.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy Always
csiProvider.podSecurityContext.sysctls Set kernel settings using the sysctl interface []
csiProvider.podSecurityContext.supplementalGroups Set filesystem extra groups []
csiProvider.podSecurityContext.fsGroup Set CSI Provider pod’s Security Context fsGroup 1001
csiProvider.networkPolicy.enabled Specifies whether a NetworkPolicy should be created true
csiProvider.networkPolicy.kubeAPIServerPorts List of possible endpoints to kube-apiserver (limit to your cluster settings to increase security) []
csiProvider.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations. true
csiProvider.networkPolicy.extraIngress Add extra ingress rules to the NetworkPolicy []
csiProvider.networkPolicy.extraEgress Add extra ingress rules to the NetworkPolicy []
csiProvider.provider.containerPorts.health CSI Provider health container port 8080
csiProvider.provider.livenessProbe.enabled Enable livenessProbe on CSI Provider container true
csiProvider.provider.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe 5
csiProvider.provider.livenessProbe.periodSeconds Period seconds for livenessProbe 10
csiProvider.provider.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe 5
csiProvider.provider.livenessProbe.failureThreshold Failure threshold for livenessProbe 5
csiProvider.provider.livenessProbe.successThreshold Success threshold for livenessProbe 1
csiProvider.provider.readinessProbe.enabled Enable readinessProbe on CSI Provider container true
csiProvider.provider.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe 5
csiProvider.provider.readinessProbe.periodSeconds Period seconds for readinessProbe 10
csiProvider.provider.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe 5
csiProvider.provider.readinessProbe.failureThreshold Failure threshold for readinessProbe 5
csiProvider.provider.readinessProbe.successThreshold Success threshold for readinessProbe 1
csiProvider.provider.startupProbe.enabled Enable startupProbe on CSI Provider container false
csiProvider.provider.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe 5
csiProvider.provider.startupProbe.periodSeconds Period seconds for startupProbe 10
csiProvider.provider.startupProbe.timeoutSeconds Timeout seconds for startupProbe 5
csiProvider.provider.startupProbe.failureThreshold Failure threshold for startupProbe 5
csiProvider.provider.startupProbe.successThreshold Success threshold for startupProbe 1
csiProvider.provider.customLivenessProbe Custom livenessProbe that overrides the default one {}
csiProvider.provider.customReadinessProbe Custom readinessProbe that overrides the default one {}
csiProvider.provider.customStartupProbe Custom startupProbe that overrides the default one {}
csiProvider.provider.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if csiProvider.provider.resources is set (csiProvider.provider.resources is recommended for production). nano
csiProvider.provider.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads) {}
csiProvider.provider.containerSecurityContext.enabled Enabled containers’ Security Context true
csiProvider.provider.containerSecurityContext.seLinuxOptions Set SELinux options in container nil
csiProvider.provider.containerSecurityContext.runAsUser Set containers’ Security Context runAsUser 1001
csiProvider.provider.containerSecurityContext.runAsGroup Set containers’ Security Context runAsGroup 1001
csiProvider.provider.containerSecurityContext.runAsNonRoot Set container’s Security Context runAsNonRoot true
csiProvider.provider.containerSecurityContext.privileged Set container’s Security Context privileged false
csiProvider.provider.containerSecurityContext.readOnlyRootFilesystem Set container’s Security Context readOnlyRootFilesystem true
csiProvider.provider.containerSecurityContext.allowPrivilegeEscalation Set container’s Security Context allowPrivilegeEscalation false
csiProvider.provider.containerSecurityContext.capabilities.drop List of capabilities to be dropped ["ALL"]
csiProvider.provider.containerSecurityContext.seccompProfile.type Set container’s Security Context seccomp profile RuntimeDefault
csiProvider.provider.command Override default container command (useful when using custom images) []
csiProvider.provider.args Override default container args (useful when using custom images) []
csiProvider.provider.lifecycleHooks for the CSI Provider container(s) to automate configuration before or after startup {}
csiProvider.provider.extraEnvVars Array with extra environment variables to add to CSI Provider nodes []
csiProvider.provider.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for CSI Provider nodes ""
csiProvider.provider.extraEnvVarsSecret Name of existing Secret containing extra env vars for CSI Provider nodes ""
csiProvider.provider.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Vault CSI Provider container []
csiProvider.agent.containerPorts.tcp CSI Provider Agent metrics container port 8200
csiProvider.agent.livenessProbe.enabled Enable livenessProbe on CSI Provider Agent container true
csiProvider.agent.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe 5
csiProvider.agent.livenessProbe.periodSeconds Period seconds for livenessProbe 10
csiProvider.agent.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe 5
csiProvider.agent.livenessProbe.failureThreshold Failure threshold for livenessProbe 5
csiProvider.agent.livenessProbe.successThreshold Success threshold for livenessProbe 1
csiProvider.agent.readinessProbe.enabled Enable readinessProbe on CSI Provider Agent container true
csiProvider.agent.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe 5
csiProvider.agent.readinessProbe.periodSeconds Period seconds for readinessProbe 10
csiProvider.agent.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe 5
csiProvider.agent.readinessProbe.failureThreshold Failure threshold for readinessProbe 5
csiProvider.agent.readinessProbe.successThreshold Success threshold for readinessProbe 1
csiProvider.agent.startupProbe.enabled Enable startupProbe on CSI Provider Agent container false
csiProvider.agent.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe 5
csiProvider.agent.startupProbe.periodSeconds Period seconds for startupProbe 10
csiProvider.agent.startupProbe.timeoutSeconds Timeout seconds for startupProbe 5
csiProvider.agent.startupProbe.failureThreshold Failure threshold for startupProbe 5
csiProvider.agent.startupProbe.successThreshold Success threshold for startupProbe 1
csiProvider.agent.customLivenessProbe Custom livenessProbe that overrides the default one {}
csiProvider.agent.customReadinessProbe Custom readinessProbe that overrides the default one {}
csiProvider.agent.customStartupProbe Custom startupProbe that overrides the default one {}
csiProvider.agent.containerSecurityContext.enabled Enabled containers’ Security Context true
csiProvider.agent.containerSecurityContext.seLinuxOptions Set SELinux options in container nil
csiProvider.agent.containerSecurityContext.runAsUser Set containers’ Security Context runAsUser 1001
csiProvider.agent.containerSecurityContext.runAsGroup Set containers’ Security Context runAsGroup 1001
csiProvider.agent.containerSecurityContext.runAsNonRoot Set container’s Security Context runAsNonRoot true
csiProvider.agent.containerSecurityContext.privileged Set container’s Security Context privileged false
csiProvider.agent.containerSecurityContext.readOnlyRootFilesystem Set container’s Security Context readOnlyRootFilesystem true
csiProvider.agent.containerSecurityContext.allowPrivilegeEscalation Set container’s Security Context allowPrivilegeEscalation false
csiProvider.agent.containerSecurityContext.capabilities.drop List of capabilities to be dropped ["ALL"]
csiProvider.agent.containerSecurityContext.seccompProfile.type Set container’s Security Context seccomp profile RuntimeDefault
csiProvider.agent.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if csiProvider.agent.resources is set (csiProvider.agent.resources is recommended for production). nano
csiProvider.agent.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads) {}
csiProvider.agent.command Override default container command (useful when using custom images) []
csiProvider.agent.args Override default container args (useful when using custom images) []
csiProvider.agent.lifecycleHooks for the CSI Provider Agent container(s) to automate configuration before or after startup {}
csiProvider.agent.extraEnvVars Array with extra environment variables to add to CSI Provider Agent nodes []
csiProvider.agent.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for CSI Provider Agent nodes ""
csiProvider.agent.extraEnvVarsSecret Name of existing Secret containing extra env vars for CSI Provider Agent nodes ""
csiProvider.agent.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the CSI Provider container(s) []

Vault CSI Provider RBAC Parameters

Name Description Value
csiProvider.rbac.create Specifies whether RBAC resources should be created true
csiProvider.rbac.rules Custom RBAC rules to set []
csiProvider.serviceAccount.create Specifies whether a ServiceAccount should be created true
csiProvider.serviceAccount.name The name of the ServiceAccount to use. ""
csiProvider.serviceAccount.annotations Additional Service Account annotations (evaluated as a template) {}
csiProvider.serviceAccount.automountServiceAccountToken Automount service account token for the server service account false

Vault Kubernetes Injector Parameters

Name Description Value
injector.enabled Enable Vault Kubernetes Injector true
injector.image.registry Vault Kubernetes Injector image registry REGISTRY_NAME
injector.image.repository Vault Kubernetes Injector image repository REPOSITORY_NAME/vault-k8s
injector.image.digest Vault Kubernetes Injector image digest in the way sha256:aa…. Please note this parameter, if set, will override the tag image tag (immutable tags are recommended) ""
injector.image.pullPolicy Vault Kubernetes Injector image pull policy IfNotPresent
injector.image.pullSecrets Vault Kubernetes Injector image pull secrets []
injector.image.debug Enable Vault Kubernetes Injector image debug mode false
injector.replicaCount Number of Vault Kubernetes Injector replicas to deploy 1
injector.containerPorts.https Vault Kubernetes Injector metrics container port 8080
injector.livenessProbe.enabled Enable livenessProbe on Vault Kubernetes Injector containers true
injector.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe 5
injector.livenessProbe.periodSeconds Period seconds for livenessProbe 10
injector.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe 5
injector.livenessProbe.failureThreshold Failure threshold for livenessProbe 5
injector.livenessProbe.successThreshold Success threshold for livenessProbe 1
injector.readinessProbe.enabled Enable readinessProbe on Vault Kubernetes Injector containers true
injector.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe 5
injector.readinessProbe.periodSeconds Period seconds for readinessProbe 10
injector.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe 5
injector.readinessProbe.failureThreshold Failure threshold for readinessProbe 5
injector.readinessProbe.successThreshold Success threshold for readinessProbe 1
injector.startupProbe.enabled Enable startupProbe on Vault Kubernetes Injector containers false
injector.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe 5
injector.startupProbe.periodSeconds Period seconds for startupProbe 10
injector.startupProbe.timeoutSeconds Timeout seconds for startupProbe 5
injector.startupProbe.failureThreshold Failure threshold for startupProbe 5
injector.startupProbe.successThreshold Success threshold for startupProbe 1
injector.customLivenessProbe Custom livenessProbe that overrides the default one {}
injector.customReadinessProbe Custom readinessProbe that overrides the default one {}
injector.customStartupProbe Custom startupProbe that overrides the default one {}
injector.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if injector.resources is set (injector.resources is recommended for production). nano
injector.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads) {}
injector.podSecurityContext.enabled Enabled Vault Kubernetes Injector pods’ Security Context true
injector.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy Always
injector.podSecurityContext.sysctls Set kernel settings using the sysctl interface []
injector.podSecurityContext.supplementalGroups Set filesystem extra groups []
injector.podSecurityContext.fsGroup Set Vault Kubernetes Injector pod’s Security Context fsGroup 1001
injector.containerSecurityContext.enabled Enabled containers’ Security Context true
injector.containerSecurityContext.seLinuxOptions Set SELinux options in container nil
injector.containerSecurityContext.runAsUser Set containers’ Security Context runAsUser 1001
injector.containerSecurityContext.runAsGroup Set containers’ Security Context runAsGroup 1001
injector.containerSecurityContext.runAsNonRoot Set container’s Security Context runAsNonRoot true
injector.containerSecurityContext.privileged Set container’s Security Context privileged false
injector.containerSecurityContext.readOnlyRootFilesystem Set container’s Security Context readOnlyRootFilesystem true
injector.containerSecurityContext.allowPrivilegeEscalation Set container’s Security Context allowPrivilegeEscalation false
injector.containerSecurityContext.capabilities.drop List of capabilities to be dropped ["ALL"]
injector.containerSecurityContext.seccompProfile.type Set container’s Security Context seccomp profile RuntimeDefault
injector.command Override default container command (useful when using custom images) []
injector.args Override default container args (useful when using custom images) []
injector.automountServiceAccountToken Mount Service Account token in pod true
injector.hostAliases Vault Kubernetes Injector pods host aliases []
injector.podLabels Extra labels for Vault Kubernetes Injector pods {}
injector.podAnnotations Annotations for Vault Kubernetes Injector pods {}
injector.podAffinityPreset Pod affinity preset. Ignored if injector.affinity is set. Allowed values: soft or hard ""
injector.podAntiAffinityPreset Pod anti-affinity preset. Ignored if injector.affinity is set. Allowed values: soft or hard soft
injector.pdb.create Enable/disable a Pod Disruption Budget creation true
injector.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled ""
injector.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to 1 if both injector.pdb.minAvailable and injector.pdb.maxUnavailable are empty. ""
injector.autoscaling.enabled Enable autoscaling for injector false
injector.autoscaling.minReplicas Minimum number of injector replicas ""
injector.autoscaling.maxReplicas Maximum number of injector replicas ""
injector.autoscaling.targetCPU Target CPU utilization percentage ""
injector.autoscaling.targetMemory Target Memory utilization percentage ""
injector.nodeAffinityPreset.type Node affinity preset type. Ignored if injector.affinity is set. Allowed values: soft or hard ""
injector.nodeAffinityPreset.key Node label key to match. Ignored if injector.affinity is set ""
injector.nodeAffinityPreset.values Node label values to match. Ignored if injector.affinity is set []
injector.affinity Affinity for Vault Kubernetes Injector pods assignment {}
injector.nodeSelector Node labels for Vault Kubernetes Injector pods assignment {}
injector.tolerations Tolerations for Vault Kubernetes Injector pods assignment []
injector.updateStrategy.type Vault Kubernetes Injector statefulset strategy type RollingUpdate
injector.priorityClassName Vault Kubernetes Injector pods’ priorityClassName ""
injector.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template []
injector.schedulerName Name of the k8s scheduler (other than default) for Vault Kubernetes Injector pods ""
injector.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully ""
injector.lifecycleHooks for the Vault Kubernetes Injector container(s) to automate configuration before or after startup {}
injector.extraEnvVars Array with extra environment variables to add to Vault Kubernetes Injector nodes []
injector.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Vault Kubernetes Injector nodes ""
injector.extraEnvVarsSecret Name of existing Secret containing extra env vars for Vault Kubernetes Injector nodes ""
injector.extraVolumes Optionally specify extra list of additional volumes for the Vault Kubernetes Injector pod(s) []
injector.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Vault Kubernetes Injector container(s) []
injector.sidecars Add additional sidecar containers to the Vault Kubernetes Injector pod(s) []
injector.initContainers Add additional init containers to the Vault Kubernetes Injector pod(s) []

Vault Kubernetes Injector Traffic Exposure Parameters

Name Description Value
injector.service.type Vault Kubernetes Injector service type ClusterIP
injector.service.ports.https Vault Kubernetes Injector service HTTPS port 443
injector.service.nodePorts.https Node port for HTTPS ""
injector.service.clusterIP Vault Kubernetes Injector service Cluster IP ""
injector.service.loadBalancerIP Vault Kubernetes Injector service Load Balancer IP ""
injector.service.loadBalancerSourceRanges Vault Kubernetes Injector service Load Balancer sources []
injector.service.externalTrafficPolicy Vault Kubernetes Injector service external traffic policy Cluster
injector.service.annotations Additional custom annotations for Vault Kubernetes Injector service {}
injector.service.extraPorts Extra ports to expose in Vault Kubernetes Injector service (normally used with the sidecars value) []
injector.service.sessionAffinity Control where web requests go, to the same pod or round-robin None
injector.service.sessionAffinityConfig Additional settings for the sessionAffinity {}
injector.networkPolicy.enabled Specifies whether a NetworkPolicy should be created true
injector.networkPolicy.kubeAPIServerPorts List of possible endpoints to kube-apiserver (limit to your cluster settings to increase security) []
injector.networkPolicy.allowExternal Don’t require injector label for connections true
injector.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations. true
injector.networkPolicy.extraIngress Add extra ingress rules to the NetworkPolicy []
injector.networkPolicy.extraEgress Add extra ingress rules to the NetworkPolicy []
injector.networkPolicy.ingressNSMatchLabels Labels to match to allow traffic from other namespaces {}
injector.networkPolicy.ingressNSPodMatchLabels Pod labels to match to allow traffic from other namespaces {}

Vault Kubernetes Injector RBAC Parameters

Name Description Value
injector.rbac.create Specifies whether RBAC resources should be created true
injector.rbac.rules Custom RBAC rules to set []
injector.serviceAccount.create Specifies whether a ServiceAccount should be created true
injector.serviceAccount.name The name of the ServiceAccount to use. ""
injector.serviceAccount.annotations Additional Service Account annotations (evaluated as a template) {}
injector.serviceAccount.automountServiceAccountToken Automount service account token for the server service account false
injector.webhook.namespaceSelector Enabling specify which namespace you want to work with webhook {}
volumePermissions.enabled Enable init container that changes the owner/group of the PV mount point to runAsUser:fsGroup false
volumePermissions.image.registry OS Shell + Utility image registry REGISTRY_NAME
volumePermissions.image.repository OS Shell + Utility image repository REPOSITORY_NAME/os-shell
volumePermissions.image.digest OS Shell + Utility image digest in the way sha256:aa…. Please note this parameter, if set, will override the tag ""
volumePermissions.image.pullPolicy OS Shell + Utility image pull policy IfNotPresent
volumePermissions.image.pullSecrets OS Shell + Utility image pull secrets []
volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production). nano
volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads) {}
volumePermissions.containerSecurityContext.enabled Enable init container’s Security Context true
volumePermissions.containerSecurityContext.seLinuxOptions Set SELinux options in container nil
volumePermissions.containerSecurityContext.runAsUser Set init container’s Security Context runAsUser 0

The above parameters map to the env variables defined in bitnami/vault. For more information please refer to the bitnami/vault image documentation.

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

helm install my-release \
  --set csiProvider.enabled=true \
    my-repo/vault

The above command enables the Vault CSI Provider deployment.

NOTE: Once this chart is deployed, it is not possible to change the application’s access credentials, such as usernames or passwords, using Helm. To change these application credentials after deployment, delete any persistent volumes (PVs) used by the chart and re-deploy it, or use the application’s built-in administrative tools if available.

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

helm install my-release -f values.yaml my-repo/vault

Tip: You can use the default values.yaml

Troubleshooting

Find more information about how to deal with common errors related to Bitnami’s Helm charts in this troubleshooting guide.

To 1.0.0

This major bump changes the following security defaults:

  • resourcesPreset is changed from none to the minimum size working in our test suites (NOTE: resourcesPreset is not meant for production usage, but resources adapted to your use case).
  • global.compatibility.openshift.adaptSecurityContext is changed from disabled to auto.

This could potentially break any customization or init scripts used in your deployment. If this is the case, change the default values to the previous ones.

License

Copyright © 2024 Broadcom. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

check-circle-line exclamation-circle-line close-line
Scroll to top icon