<!--- app-name: InfluxDB&trade; -->

# Bitnami Stack for InfluxDB(TM)

InfluxDB(TM) is an open source time-series database. It is a core component of the TICK (Telegraf, InfluxDB(TM), Chronograf, Kapacitor) stack.

[Overview of InfluxDB&trade;](https://www.influxdata.com/products/influxdb-overview)

InfluxDB(TM) is a trademark owned by InfluxData, which is not affiliated with, and does not endorse, this site.

## TL;DR

```console
helm install my-release oci://registry-1.docker.io/bitnamicharts/influxdb
```

Looking to use InfluxDB&trade; in production? Try [VMware Tanzu Application Catalog](https://bitnami.com/enterprise), the enterprise edition of Bitnami Application Catalog.

## Introduction

This chart bootstraps a [influxdb](https://github.com/bitnami/containers/tree/main/bitnami/influxdb) deployment on a [Kubernetes](https://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.

Bitnami charts can be used with [Kubeapps](https://kubeapps.dev/) for deployment and management of Helm Charts in clusters.

## Prerequisites

- Kubernetes 1.23+
- Helm 3.8.0+
- PV provisioner support in the underlying infrastructure
- ReadWriteMany volumes for deployment scaling

## Installing the Chart

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

```console
helm install my-release oci://REGISTRY_NAME/REPOSITORY_NAME/influxdb
```

> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`.

These commands deploy influxdb on the Kubernetes cluster in the default configuration. The [Parameters](#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](https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15). 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](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/).

### [Rolling VS Immutable tags](https://docs.vmware.com/en/VMware-Tanzu-Application-Catalog/services/tutorials/GUID-understand-rolling-tags-containers-index.html)

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.

This chart installs a deployment with the following configuration:

```text
                ------------------
               |     Ingress      |
               |    Controller    |
                ------------------
                        |
                        | /query
                        | /write
                        \/
                 ----------------
                |  InfluxDB(TM)  |
                |      svc       |
                 ----------------
                        |
                        \/
                  --------------
                 | InfluxDB(TM) |
                 |    Server    |
                 |     Pod      |
                  --------------
```

### Configure the way how to expose InfluxDB&trade;

- **Ingress**: The ingress controller must be installed in the Kubernetes cluster. Set `ingress.enabled=true` to expose InfluxDB&trade; through Ingress.
- **ClusterIP**: Exposes the service on a cluster-internal IP. Choosing this value makes the service only reachable from within the cluster. Set `influxdb.service.type=ClusterIP` to choose this service type.
- **NodePort**: Exposes the service on each Node's IP at a static port (the NodePort). You'll be able to contact the NodePort service, from outside the cluster, by requesting `NodeIP:NodePort`. Set `influxdb.service.type=NodePort` to choose this service type.
- **LoadBalancer**: Exposes the service externally using a cloud provider's load balancer. Set `influxdb.service.type=LoadBalancer` to choose this service type.

### Using custom configuration

This helm chart supports to customize the whole configuration file.

Add your custom configuration file to "files/conf" in your working directory. This file will be mounted as a configMap to the containers and it will be used for configuring InfluxDB&trade;.

Alternatively, you can specify the InfluxDB&trade; configuration using the `influxdb.configuration` parameter.

In addition to these options, you can also set an external ConfigMap with all the configuration files. This is done by setting the `influxdb.existingConfiguration` parameter. Note that this will override the two previous options.

### Adding extra environment variables

In case you want to add extra environment variables, you can use the `influxdb.extraEnvVars` property.

```yaml
extraEnvVars:
  - name: INFLUXDB_DATA_QUERY_LOG_ENABLED
    value: "true"
```

### Initialize a fresh instance

The [Bitnami InfluxDB&trade;](https://github.com/bitnami/containers/tree/main/bitnami/influxdb) image allows you to use your custom scripts to initialize a fresh instance. In order to execute the scripts, they must be located inside the chart folder `files/docker-entrypoint-initdb.d` so they can be consumed as a ConfigMap.

Alternatively, you can specify custom scripts using the `influxdb.initdbScripts` parameter.

In addition to these options, you can also set an external ConfigMap with all the initialization scripts. This is done by setting the `influxdb.initdbScriptsCM` parameter. Note that this will override the two previous options. parameter.

The allowed extensions are `.sh`, and `.txt`.

### Setting Pod's affinity

This chart allows you to set your custom affinity using the `XXX.affinity` parameter(s). Find more information about Pod's affinity in the [kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity).

As an alternative, you can use of the preset configurations for pod affinity, pod anti-affinity, and node affinity available at the [bitnami/common](https://github.com/bitnami/charts/tree/main/bitnami/common#affinities) chart. To do so, set the `XXX.podAffinityPreset`, `XXX.podAntiAffinityPreset`, or `XXX.nodeAffinityPreset` parameters.

## Persistence

The data is persisted by default using PVC(s). You can disable the persistence setting the `persistence.enabled` parameter to `false`.
A default `StorageClass` is needed in the Kubernetes cluster to dynamically provision the volumes. Specify another StorageClass in the `persistence.storageClass` or set `persistence.existingClaim` if you have already existing persistent volumes to use.

If you would like to define persistence settings for a backup volume that differ from the persistence settings for the database volume, you may do so under the `backup.persistence` section of the configuration by setting `backup.persistence.ownConfig` to `true`. The backup volume will otherwise be defined using the `persistence` parameter section.

### Adjust permissions of persistent volume mountpoint

As the images run as non-root by default, it is necessary to adjust the ownership of the persistent volumes so that the containers can write data into it.

By default, the chart is configured to use Kubernetes Security Context to automatically change the ownership of the volume. However, this feature does not work in all Kubernetes distributions.
As an alternative, this chart supports using an initContainer to change the ownership of the volume before mounting it in the final destination.

You can enable this **initContainer** by setting `volumePermissions.enabled` to `true`.
There are K8s distribution, such as OpenShift, where you can dynamically define the UID to run this **initContainer**. To do so, set the `volumePermissions.securityContext.runAsUser` to `auto`.

## Parameters

### Global parameters

| Name                                                  | Description                                                                                                                                                                                                                                                                                                                                                         | Value  |
| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
| `global.imageRegistry`                                | Global Docker image registry                                                                                                                                                                                                                                                                                                                                        | `""`   |
| `global.imagePullSecrets`                             | Global Docker registry secret names as an array                                                                                                                                                                                                                                                                                                                     | `[]`   |
| `global.storageClass`                                 | Global storage class for dynamic provisioning                                                                                                                                                                                                                                                                                                                       | `""`   |
| `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`            | Force target Kubernetes version (using Helm capabilities if not set)                                  | `""`            |
| `nameOverride`           | String to partially override influxdb.fullname template with a string (will prepend the release name) | `""`            |
| `fullnameOverride`       | String to fully override influxdb.fullname template with a string                                     | `""`            |
| `clusterDomain`          | Default Kubernetes cluster domain                                                                     | `cluster.local` |
| `commonAnnotations`      | Annotations to add to all deployed objects                                                            | `{}`            |
| `commonLabels`           | Labels to add to all deployed objects                                                                 | `{}`            |
| `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"]`  |

### InfluxDB&trade; parameters

| Name                                                         | Description                                                                                                                                                                                                                                                          | Value                      |
| ------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| `image.registry`                                             | InfluxDB&trade; image registry                                                                                                                                                                                                                                       | `REGISTRY_NAME`            |
| `image.repository`                                           | InfluxDB&trade; image repository                                                                                                                                                                                                                                     | `REPOSITORY_NAME/influxdb` |
| `image.digest`                                               | InfluxDB&trade; image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag                                                                                                                                                      | `""`                       |
| `image.pullPolicy`                                           | InfluxDB&trade; image pull policy                                                                                                                                                                                                                                    | `IfNotPresent`             |
| `image.pullSecrets`                                          | Specify docker-registry secret names as an array                                                                                                                                                                                                                     | `[]`                       |
| `image.debug`                                                | Specify if debug logs should be enabled                                                                                                                                                                                                                              | `false`                    |
| `auth.enabled`                                               | Enable/disable authentication (Variable to keep compatibility with InfluxDB&trade; v1, in v2 it will be ignored)                                                                                                                                                     | `true`                     |
| `auth.usePasswordFiles`                                      | Whether to use files to provide secrets instead of env vars.                                                                                                                                                                                                         | `false`                    |
| `auth.admin.username`                                        | InfluxDB&trade; admin user name                                                                                                                                                                                                                                      | `admin`                    |
| `auth.admin.password`                                        | InfluxDB&trade; admin user's password                                                                                                                                                                                                                                | `""`                       |
| `auth.admin.token`                                           | InfluxDB&trade; admin user's token. Only valid with InfluxDB&trade; v2                                                                                                                                                                                               | `""`                       |
| `auth.admin.org`                                             | InfluxDB&trade; admin user's org. Only valid with InfluxDB&trade; v2                                                                                                                                                                                                 | `primary`                  |
| `auth.admin.bucket`                                          | InfluxDB&trade; admin user's bucket. Only valid with InfluxDB&trade; v2                                                                                                                                                                                              | `primary`                  |
| `auth.admin.retention`                                       | InfluxDB&trade; admin user's bucket retention. Only valid with InfluxDB&trade; v2                                                                                                                                                                                    | `""`                       |
| `auth.createUserToken`                                       | Whether to create tokens for the different users. Take into account these tokens are going to be created by CLI randomly and they will not be accessible from a secret. See more influxdb 2.0 [auth ref](https://docs.influxdata.com/influxdb/v2.0/security/tokens/) | `false`                    |
| `auth.user.username`                                         | Name for InfluxDB&trade; user with 'admin' privileges on the bucket specified at `auth.user.bucket` and `auth.user.org` or `auth.admin.org`                                                                                                                          | `""`                       |
| `auth.user.password`                                         | InfluxDB&trade; password for `user.name` user                                                                                                                                                                                                                        | `""`                       |
| `auth.user.org`                                              | Org to be created on first run                                                                                                                                                                                                                                       | `""`                       |
| `auth.user.bucket`                                           | Bucket to be created on first run                                                                                                                                                                                                                                    | `""`                       |
| `auth.readUser.username`                                     | Name for InfluxDB&trade; user with 'read' privileges on the bucket specified at `auth.user.bucket`                                                                                                                                                                   | `""`                       |
| `auth.readUser.password`                                     | InfluxDB&trade; password for `auth.readUser.username` user                                                                                                                                                                                                           | `""`                       |
| `auth.writeUser.username`                                    | Name for InfluxDB&trade; user with 'read' privileges on the bucket specified at `auth.user.bucket`                                                                                                                                                                   | `""`                       |
| `auth.writeUser.password`                                    | InfluxDB&trade; password for `auth.writeUser.username` user                                                                                                                                                                                                          | `""`                       |
| `auth.existingSecret`                                        | Name of existing Secret object with InfluxDB&trade; credentials (`auth.admin.password`, `auth.user.password`, `auth.readUser.password`, and `auth.writeUser.password` will be ignored and picked up from this secret)                                                | `""`                       |
| `influxdb.configuration`                                     | Specify content for influxdb.conf                                                                                                                                                                                                                                    | `""`                       |
| `influxdb.existingConfiguration`                             | Name of existing ConfigMap object with the InfluxDB&trade; configuration (`influxdb.configuration` will be ignored).                                                                                                                                                 | `""`                       |
| `influxdb.initdbScripts`                                     | Dictionary of initdb scripts                                                                                                                                                                                                                                         | `{}`                       |
| `influxdb.initdbScriptsCM`                                   | Name of existing ConfigMap object with the initdb scripts (`influxdb.initdbScripts` will be ignored).                                                                                                                                                                | `""`                       |
| `influxdb.initdbScriptsSecret`                               | Secret with initdb scripts that contain sensitive information (Note: can be used with `initdbScriptsConfigMap` or `initdbScripts`)                                                                                                                                   | `""`                       |
| `influxdb.podAffinityPreset`                                 | InfluxDB&trade; Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`                                                                                                                                                                  | `""`                       |
| `influxdb.podAntiAffinityPreset`                             | InfluxDB&trade; Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`                                                                                                                                                             | `soft`                     |
| `influxdb.nodeAffinityPreset.type`                           | InfluxDB&trade; Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`                                                                                                                                                            | `""`                       |
| `influxdb.nodeAffinityPreset.key`                            | InfluxDB&trade; Node label key to match Ignored if `affinity` is set.                                                                                                                                                                                                | `""`                       |
| `influxdb.nodeAffinityPreset.values`                         | InfluxDB&trade; Node label values to match. Ignored if `affinity` is set.                                                                                                                                                                                            | `[]`                       |
| `influxdb.affinity`                                          | InfluxDB&trade; Affinity for pod assignment                                                                                                                                                                                                                          | `{}`                       |
| `influxdb.nodeSelector`                                      | InfluxDB&trade; Node labels for pod assignment                                                                                                                                                                                                                       | `{}`                       |
| `influxdb.tolerations`                                       | InfluxDB&trade; Tolerations for pod assignment                                                                                                                                                                                                                       | `[]`                       |
| `influxdb.podAnnotations`                                    | Annotations for InfluxDB&trade; pods                                                                                                                                                                                                                                 | `{}`                       |
| `influxdb.podLabels`                                         | Extra labels for InfluxDB&trade; pods                                                                                                                                                                                                                                | `{}`                       |
| `influxdb.automountServiceAccountToken`                      | Mount Service Account token in pod                                                                                                                                                                                                                                   | `false`                    |
| `influxdb.hostAliases`                                       | InfluxDB&trade; pods host aliases                                                                                                                                                                                                                                    | `[]`                       |
| `influxdb.updateStrategy.type`                               | InfluxDB&trade; statefulset/deployment strategy type                                                                                                                                                                                                                 | `RollingUpdate`            |
| `influxdb.priorityClassName`                                 | InfluxDB&trade; pods' priorityClassName                                                                                                                                                                                                                              | `""`                       |
| `influxdb.schedulerName`                                     | Name of the k8s scheduler (other than default)                                                                                                                                                                                                                       | `""`                       |
| `influxdb.topologySpreadConstraints`                         | Topology Spread Constraints for pod assignment                                                                                                                                                                                                                       | `[]`                       |
| `influxdb.podManagementPolicy`                               | podManagementPolicy to manage scaling operation of InfluxDB&trade; pods                                                                                                                                                                                              | `OrderedReady`             |
| `influxdb.podSecurityContext.enabled`                        | Enabled InfluxDB&trade; pods' Security Context                                                                                                                                                                                                                       | `true`                     |
| `influxdb.podSecurityContext.fsGroupChangePolicy`            | Set filesystem group change policy                                                                                                                                                                                                                                   | `Always`                   |
| `influxdb.podSecurityContext.sysctls`                        | Set kernel settings using the sysctl interface                                                                                                                                                                                                                       | `[]`                       |
| `influxdb.podSecurityContext.supplementalGroups`             | Set filesystem extra groups                                                                                                                                                                                                                                          | `[]`                       |
| `influxdb.podSecurityContext.fsGroup`                        | Set InfluxDB&trade; pod's Security Context fsGroup                                                                                                                                                                                                                   | `1001`                     |
| `influxdb.containerSecurityContext.enabled`                  | Enabled containers' Security Context                                                                                                                                                                                                                                 | `true`                     |
| `influxdb.containerSecurityContext.seLinuxOptions`           | Set SELinux options in container                                                                                                                                                                                                                                     | `{}`                       |
| `influxdb.containerSecurityContext.runAsUser`                | Set containers' Security Context runAsUser                                                                                                                                                                                                                           | `1001`                     |
| `influxdb.containerSecurityContext.runAsGroup`               | Set containers' Security Context runAsGroup                                                                                                                                                                                                                          | `1001`                     |
| `influxdb.containerSecurityContext.runAsNonRoot`             | Set container's Security Context runAsNonRoot                                                                                                                                                                                                                        | `true`                     |
| `influxdb.containerSecurityContext.privileged`               | Set container's Security Context privileged                                                                                                                                                                                                                          | `false`                    |
| `influxdb.containerSecurityContext.readOnlyRootFilesystem`   | Set container's Security Context readOnlyRootFilesystem                                                                                                                                                                                                              | `true`                     |
| `influxdb.containerSecurityContext.allowPrivilegeEscalation` | Set container's Security Context allowPrivilegeEscalation                                                                                                                                                                                                            | `false`                    |
| `influxdb.containerSecurityContext.capabilities.drop`        | List of capabilities to be dropped                                                                                                                                                                                                                                   | `["ALL"]`                  |
| `influxdb.containerSecurityContext.seccompProfile.type`      | Set container's Security Context seccomp profile                                                                                                                                                                                                                     | `RuntimeDefault`           |
| `influxdb.resourcesPreset`                                   | Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if influxdb.resources is set (influxdb.resources is recommended for production).                                  | `nano`                     |
| `influxdb.resources`                                         | Set container requests and limits for different resources like CPU or memory (essential for production workloads)                                                                                                                                                    | `{}`                       |
| `influxdb.command`                                           | Override default container command (useful when using custom images)                                                                                                                                                                                                 | `[]`                       |
| `influxdb.args`                                              | Override default container args (useful when using custom images)                                                                                                                                                                                                    | `[]`                       |
| `influxdb.lifecycleHooks`                                    | for the InfluxDB&trade; container(s) to automate configuration before or after startup                                                                                                                                                                               | `{}`                       |
| `influxdb.extraEnvVars`                                      | Array containing extra env vars to configure InfluxDB&trade;                                                                                                                                                                                                         | `[]`                       |
| `influxdb.extraEnvVarsCM`                                    | Name of existing ConfigMap containing extra env vars for InfluxDB&trade; nodes                                                                                                                                                                                       | `""`                       |
| `influxdb.extraEnvVarsSecret`                                | Name of existing Secret containing extra env vars for InfluxDB&trade; nodes                                                                                                                                                                                          | `""`                       |
| `influxdb.extraVolumes`                                      | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting extraVolumeMounts                                                                                                                                                     | `[]`                       |
| `influxdb.extraVolumeMounts`                                 | Array of extra volume mounts to be added to the container (evaluated as template). Normally used with extraVolumes.                                                                                                                                                  | `[]`                       |
| `influxdb.containerPorts.http`                               | InfluxDB&trade; container HTTP port                                                                                                                                                                                                                                  | `8086`                     |
| `influxdb.containerPorts.rpc`                                | InfluxDB&trade; container RPC port                                                                                                                                                                                                                                   | `8088`                     |
| `influxdb.startupProbe.enabled`                              | Enable startupProbe                                                                                                                                                                                                                                                  | `false`                    |
| `influxdb.startupProbe.initialDelaySeconds`                  | Initial delay seconds for startupProbe                                                                                                                                                                                                                               | `180`                      |
| `influxdb.startupProbe.periodSeconds`                        | Period seconds for startupProbe                                                                                                                                                                                                                                      | `45`                       |
| `influxdb.startupProbe.timeoutSeconds`                       | Timeout seconds for startupProbe                                                                                                                                                                                                                                     | `30`                       |
| `influxdb.startupProbe.failureThreshold`                     | Failure threshold for startupProbe                                                                                                                                                                                                                                   | `6`                        |
| `influxdb.startupProbe.successThreshold`                     | Success threshold for startupProbe                                                                                                                                                                                                                                   | `1`                        |
| `influxdb.livenessProbe.enabled`                             | Enable livenessProbe                                                                                                                                                                                                                                                 | `true`                     |
| `influxdb.livenessProbe.initialDelaySeconds`                 | Initial delay seconds for livenessProbe                                                                                                                                                                                                                              | `180`                      |
| `influxdb.livenessProbe.periodSeconds`                       | Period seconds for livenessProbe                                                                                                                                                                                                                                     | `45`                       |
| `influxdb.livenessProbe.timeoutSeconds`                      | Timeout seconds for livenessProbe                                                                                                                                                                                                                                    | `30`                       |
| `influxdb.livenessProbe.failureThreshold`                    | Failure threshold for livenessProbe                                                                                                                                                                                                                                  | `6`                        |
| `influxdb.livenessProbe.successThreshold`                    | Success threshold for livenessProbe                                                                                                                                                                                                                                  | `1`                        |
| `influxdb.readinessProbe.enabled`                            | Enable readinessProbe                                                                                                                                                                                                                                                | `true`                     |
| `influxdb.readinessProbe.initialDelaySeconds`                | Initial delay seconds for readinessProbe                                                                                                                                                                                                                             | `60`                       |
| `influxdb.readinessProbe.periodSeconds`                      | Period seconds for readinessProbe                                                                                                                                                                                                                                    | `45`                       |
| `influxdb.readinessProbe.timeoutSeconds`                     | Timeout seconds for readinessProbe                                                                                                                                                                                                                                   | `30`                       |
| `influxdb.readinessProbe.failureThreshold`                   | Failure threshold for readinessProbe                                                                                                                                                                                                                                 | `6`                        |
| `influxdb.readinessProbe.successThreshold`                   | Success threshold for readinessProbe                                                                                                                                                                                                                                 | `1`                        |
| `influxdb.customStartupProbe`                                | Override default startup probe                                                                                                                                                                                                                                       | `{}`                       |
| `influxdb.customLivenessProbe`                               | Override default liveness probe                                                                                                                                                                                                                                      | `{}`                       |
| `influxdb.customReadinessProbe`                              | Override default readiness probe                                                                                                                                                                                                                                     | `{}`                       |
| `influxdb.sidecars`                                          | Add additional sidecar containers to the InfluxDB&trade; pod(s)                                                                                                                                                                                                      | `[]`                       |
| `influxdb.initContainers`                                    | Add additional init containers to the InfluxDB&trade; pod(s)                                                                                                                                                                                                         | `[]`                       |
| `influxdb.pdb.create`                                        | Enable/disable a Pod Disruption Budget creation                                                                                                                                                                                                                      | `true`                     |
| `influxdb.pdb.minAvailable`                                  | Minimum number/percentage of pods that should remain scheduled                                                                                                                                                                                                       | `""`                       |
| `influxdb.pdb.maxUnavailable`                                | Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `influxdb.pdb.minAvailable` and `influxdb.pdb.maxUnavailable` are empty.                                                                                                     | `""`                       |
| `influxdb.service.type`                                      | Kubernetes service type (`ClusterIP`, `NodePort` or `LoadBalancer`)                                                                                                                                                                                                  | `ClusterIP`                |
| `influxdb.service.ports.http`                                | InfluxDB&trade; HTTP port                                                                                                                                                                                                                                            | `8086`                     |
| `influxdb.service.ports.rpc`                                 | InfluxDB&trade; RPC port                                                                                                                                                                                                                                             | `8088`                     |
| `influxdb.service.nodePorts`                                 | Specify the nodePort(s) value for the LoadBalancer and NodePort service types.                                                                                                                                                                                       | `{}`                       |
| `influxdb.service.loadBalancerIP`                            | loadBalancerIP if service type is `LoadBalancer`                                                                                                                                                                                                                     | `""`                       |
| `influxdb.service.loadBalancerSourceRanges`                  | Address that are allowed when service is LoadBalancer                                                                                                                                                                                                                | `[]`                       |
| `influxdb.service.clusterIP`                                 | Static clusterIP or None for headless services                                                                                                                                                                                                                       | `""`                       |
| `influxdb.service.externalTrafficPolicy`                     | InfluxDB&trade; service external traffic policy                                                                                                                                                                                                                      | `Cluster`                  |
| `influxdb.service.extraPorts`                                | Extra ports to expose (normally used with the `sidecar` value)                                                                                                                                                                                                       | `[]`                       |
| `influxdb.service.annotations`                               | Annotations for InfluxDB&trade; service                                                                                                                                                                                                                              | `{}`                       |
| `influxdb.service.sessionAffinity`                           | Session Affinity for Kubernetes service, can be "None" or "ClientIP"                                                                                                                                                                                                 | `None`                     |
| `influxdb.service.sessionAffinityConfig`                     | Additional settings for the sessionAffinity                                                                                                                                                                                                                          | `{}`                       |

### InfluxDB Collectd&trade; parameters

| Name                                        | Description                                                                               | Value       |
| ------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------- |
| `collectd.enabled`                          | InfluxDB Collectd&trade; service enable                                                   | `false`     |
| `collectd.service.type`                     | Kubernetes service type (`ClusterIP`, `NodePort` or `LoadBalancer`)                       | `ClusterIP` |
| `collectd.service.port`                     | InfluxDB Collectd&trade; UDP port (should match with corresponding port in influxdb.conf) | `25826`     |
| `collectd.service.nodePort`                 | Kubernetes HTTP node port                                                                 | `""`        |
| `collectd.service.loadBalancerIP`           | loadBalancerIP if service type is `LoadBalancer`                                          | `""`        |
| `collectd.service.loadBalancerSourceRanges` | Address that are allowed when service is LoadBalancer                                     | `[]`        |
| `collectd.service.clusterIP`                | Static clusterIP or None for headless services                                            | `""`        |
| `collectd.service.externalTrafficPolicy`    | InfluxDB Collectd&trade; service external traffic policy                                  | `Cluster`   |
| `collectd.service.extraPorts`               | Extra ports to expose (normally used with the `sidecar` value)                            | `[]`        |
| `collectd.service.annotations`              | Annotations for InfluxDB Collectd&trade; service                                          | `{}`        |
| `collectd.service.sessionAffinity`          | Session Affinity for Kubernetes service, can be "None" or "ClientIP"                      | `None`      |
| `collectd.service.sessionAffinityConfig`    | Additional settings for the sessionAffinity                                               | `{}`        |

### Exposing parameters

| Name                       | Description                                                                                                                      | Value                    |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| `ingress.enabled`          | Enable ingress controller resource                                                                                               | `false`                  |
| `ingress.tls`              | Create TLS Secret                                                                                                                | `false`                  |
| `ingress.pathType`         | Ingress path type                                                                                                                | `ImplementationSpecific` |
| `ingress.apiVersion`       | Force Ingress API version (automatically detected if not set)                                                                    | `""`                     |
| `ingress.hostname`         | Default host for the ingress resource (evaluated as template)                                                                    | `influxdb.local`         |
| `ingress.path`             | Ingress path*' in order to use this                                                                                              | `/`                      |
| `ingress.annotations`      | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | `{}`                     |
| `ingress.extraHosts`       | The list of additional hostnames to be covered with this ingress record.                                                         | `[]`                     |
| `ingress.extraPaths`       | Additional arbitrary path/backend objects                                                                                        | `[]`                     |
| `ingress.extraTls`         | The tls configuration for additional hostnames to be covered with this ingress record.                                           | `[]`                     |
| `ingress.secrets`          | If you're providing your own certificates, please use this to add the certificates as secrets                                    | `[]`                     |
| `ingress.ingressClassName` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)                                                    | `""`                     |
| `ingress.extraRules`       | Additional rules to be covered with this ingress record                                                                          | `[]`                     |

### Metrics parameters

| Name                                          | Description                                                                                                                                 | Value               |
| --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- |
| `metrics.enabled`                             | Enable the export of Prometheus metrics                                                                                                     | `false`             |
| `metrics.service.type`                        | Kubernetes service type (`ClusterIP`, `NodePort` or `LoadBalancer`)                                                                         | `ClusterIP`         |
| `metrics.service.port`                        | InfluxDB&trade; Prometheus port                                                                                                             | `9122`              |
| `metrics.service.nodePort`                    | Kubernetes HTTP node port                                                                                                                   | `""`                |
| `metrics.service.loadBalancerIP`              | loadBalancerIP if service type is `LoadBalancer`                                                                                            | `""`                |
| `metrics.service.loadBalancerSourceRanges`    | Address that are allowed when service is LoadBalancer                                                                                       | `[]`                |
| `metrics.service.clusterIP`                   | Static clusterIP or None for headless services                                                                                              | `""`                |
| `metrics.service.annotations`                 | Annotations for the Prometheus metrics service                                                                                              | `{}`                |
| `metrics.service.externalTrafficPolicy`       | Service external traffic policy                                                                                                             | `Cluster`           |
| `metrics.service.extraPorts`                  | Extra ports to expose (normally used with the `sidecar` value)                                                                              | `[]`                |
| `metrics.service.sessionAffinity`             | Session Affinity for Kubernetes service, can be "None" or "ClientIP"                                                                        | `None`              |
| `metrics.service.sessionAffinityConfig`       | Additional settings for the sessionAffinity                                                                                                 | `{}`                |
| `metrics.serviceMonitor.enabled`              | if `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`)                                      | `false`             |
| `metrics.serviceMonitor.namespace`            | Namespace in which Prometheus is running                                                                                                    | `""`                |
| `metrics.serviceMonitor.interval`             | Interval at which metrics should be scraped.                                                                                                | `""`                |
| `metrics.serviceMonitor.scrapeTimeout`        | Timeout after which the scrape is ended                                                                                                     | `""`                |
| `metrics.serviceMonitor.relabelings`          | RelabelConfigs to apply to samples before scraping                                                                                          | `[]`                |
| `metrics.serviceMonitor.metricRelabelings`    | MetricRelabelConfigs to apply to samples before ingestion                                                                                   | `[]`                |
| `metrics.serviceMonitor.selector`             | Prometheus instance selector labels                                                                                                         | `{}`                |
| `metrics.serviceMonitor.honorLabels`          | honorLabels chooses the metric's labels on collisions with target labels                                                                    | `false`             |
| `networkPolicy.enabled`                       | Specifies whether a NetworkPolicy should be created                                                                                         | `true`              |
| `networkPolicy.allowExternal`                 | Don't require server label for connections                                                                                                  | `true`              |
| `networkPolicy.allowExternalEgress`           | Allow the pod to access any range of port and all destinations.                                                                             | `true`              |
| `networkPolicy.extraIngress`                  | Add extra ingress rules to the NetworkPolicy                                                                                                | `[]`                |
| `networkPolicy.extraEgress`                   | Add extra ingress rules to the NetworkPolicy                                                                                                | `[]`                |
| `networkPolicy.ingressNSMatchLabels`          | Labels to match to allow traffic from other namespaces                                                                                      | `{}`                |
| `networkPolicy.ingressNSPodMatchLabels`       | Pod labels to match to allow traffic from other namespaces                                                                                  | `{}`                |
| `persistence.enabled`                         | Enable data persistence                                                                                                                     | `true`              |
| `persistence.existingClaim`                   | Use a existing PVC which must be created manually before bound                                                                              | `""`                |
| `persistence.storageClass`                    | Specify the `storageClass` used to provision the volume                                                                                     | `""`                |
| `persistence.accessModes`                     | Access mode of data volume                                                                                                                  | `["ReadWriteOnce"]` |
| `persistence.size`                            | Size of data volume                                                                                                                         | `8Gi`               |
| `persistence.annotations`                     | Persistent Volume Claim annotations                                                                                                         | `{}`                |
| `serviceAccount.create`                       | Specifies whether a ServiceAccount should be created                                                                                        | `true`              |
| `serviceAccount.name`                         | Name of the service account to use. If not set and create is true, a name is generated using the fullname template.                         | `""`                |
| `serviceAccount.automountServiceAccountToken` | Automount service account token for the server service account                                                                              | `false`             |
| `serviceAccount.annotations`                  | Annotations for service account. Evaluated as a template. Only used if `create` is `true`.                                                  | `{}`                |
| `psp.create`                                  | Whether to create a PodSecurityPolicy. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later | `false`             |
| `rbac.create`                                 | Create Role and RoleBinding (required for PSP to work)                                                                                      | `false`             |

### Volume permissions parameters

| Name                                               | Description                                                                                                                       | Value                      |
| -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| `volumePermissions.enabled`                        | Enable init container that changes the owner and group of the persistent volume mountpoint to `runAsUser:fsGroup`                 | `false`                    |
| `volumePermissions.image.registry`                 | Init container volume-permissions image registry                                                                                  | `REGISTRY_NAME`            |
| `volumePermissions.image.repository`               | Init container volume-permissions image name                                                                                      | `REPOSITORY_NAME/os-shell` |
| `volumePermissions.image.digest`                   | Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""`                       |
| `volumePermissions.image.pullPolicy`               | Init container volume-permissions image pull policy                                                                               | `IfNotPresent`             |
| `volumePermissions.image.pullSecrets`              | Specify docker-registry secret names as an array                                                                                  | `[]`                       |
| `volumePermissions.securityContext.seLinuxOptions` | Set SELinux options in container                                                                                                  | `{}`                       |
| `volumePermissions.securityContext.runAsUser`      | User ID for the init container (when facing issues in OpenShift or uid unknown, try value "auto")                                 | `0`                        |

### InfluxDB&trade; backup parameters

| Name                                                               | Description                                                                                                                                                                                                                         | Value                              |
| ------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
| `backup.enabled`                                                   | Enable InfluxDB&trade; backup                                                                                                                                                                                                       | `false`                            |
| `backup.directory`                                                 | Directory where backups are stored                                                                                                                                                                                                  | `/backups`                         |
| `backup.retentionDays`                                             | Retention time in days for backups (older backups are deleted)                                                                                                                                                                      | `10`                               |
| `backup.persistence.ownConfig`                                     | Prefer independent own persistence parameters to configure the backup volume                                                                                                                                                        | `false`                            |
| `backup.persistence.enabled`                                       | Enable data persistence for backup volume                                                                                                                                                                                           | `true`                             |
| `backup.persistence.existingClaim`                                 | Use a existing PVC which must be created manually before bound                                                                                                                                                                      | `""`                               |
| `backup.persistence.storageClass`                                  | Specify the `storageClass` used to provision the volume                                                                                                                                                                             | `""`                               |
| `backup.persistence.accessModes`                                   | Access mode of data volume                                                                                                                                                                                                          | `["ReadWriteOnce"]`                |
| `backup.persistence.size`                                          | Size of data volume                                                                                                                                                                                                                 | `8Gi`                              |
| `backup.persistence.annotations`                                   | Persistent Volume Claim annotations                                                                                                                                                                                                 | `{}`                               |
| `backup.cronjob.schedule`                                          | Schedule in Cron format to save snapshots                                                                                                                                                                                           | `0 2 * * *`                        |
| `backup.cronjob.historyLimit`                                      | Number of successful finished jobs to retain                                                                                                                                                                                        | `1`                                |
| `backup.cronjob.podAnnotations`                                    | Pod annotations                                                                                                                                                                                                                     | `{}`                               |
| `backup.cronjob.podSecurityContext.enabled`                        | Enable security context for InfluxDB&trade; backup pods                                                                                                                                                                             | `true`                             |
| `backup.cronjob.podSecurityContext.fsGroupChangePolicy`            | Set filesystem group change policy                                                                                                                                                                                                  | `Always`                           |
| `backup.cronjob.podSecurityContext.sysctls`                        | Set kernel settings using the sysctl interface                                                                                                                                                                                      | `[]`                               |
| `backup.cronjob.podSecurityContext.supplementalGroups`             | Set filesystem extra groups                                                                                                                                                                                                         | `[]`                               |
| `backup.cronjob.podSecurityContext.fsGroup`                        | Group ID for the InfluxDB&trade; filesystem                                                                                                                                                                                         | `1001`                             |
| `backup.cronjob.containerSecurityContext.enabled`                  | Enabled containers' Security Context                                                                                                                                                                                                | `true`                             |
| `backup.cronjob.containerSecurityContext.seLinuxOptions`           | Set SELinux options in container                                                                                                                                                                                                    | `{}`                               |
| `backup.cronjob.containerSecurityContext.runAsUser`                | Set containers' Security Context runAsUser                                                                                                                                                                                          | `1001`                             |
| `backup.cronjob.containerSecurityContext.runAsGroup`               | Set containers' Security Context runAsGroup                                                                                                                                                                                         | `1001`                             |
| `backup.cronjob.containerSecurityContext.runAsNonRoot`             | Set container's Security Context runAsNonRoot                                                                                                                                                                                       | `true`                             |
| `backup.cronjob.containerSecurityContext.privileged`               | Set container's Security Context privileged                                                                                                                                                                                         | `false`                            |
| `backup.cronjob.containerSecurityContext.readOnlyRootFilesystem`   | Set container's Security Context readOnlyRootFilesystem                                                                                                                                                                             | `true`                             |
| `backup.cronjob.containerSecurityContext.allowPrivilegeEscalation` | Set container's Security Context allowPrivilegeEscalation                                                                                                                                                                           | `false`                            |
| `backup.cronjob.containerSecurityContext.capabilities.drop`        | List of capabilities to be dropped                                                                                                                                                                                                  | `["ALL"]`                          |
| `backup.cronjob.containerSecurityContext.seccompProfile.type`      | Set container's Security Context seccomp profile                                                                                                                                                                                    | `RuntimeDefault`                   |
| `backup.cronjob.resourcesPreset`                                   | Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if influxdb.resources is set (influxdb.resources is recommended for production). | `none`                             |
| `backup.cronjob.resources`                                         | Set container requests and limits for different resources like CPU or memory (essential for production workloads)                                                                                                                   | `{}`                               |
| `backup.podAffinityPreset`                                         | Backup &trade; Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`                                                                                                                                  | `""`                               |
| `backup.podAntiAffinityPreset`                                     | Backup&trade; Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`                                                                                                                              | `soft`                             |
| `backup.nodeAffinityPreset.type`                                   | Backup&trade; Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`                                                                                                                             | `""`                               |
| `backup.nodeAffinityPreset.key`                                    | Backup&trade; Node label key to match Ignored if `affinity` is set.                                                                                                                                                                 | `""`                               |
| `backup.nodeAffinityPreset.values`                                 | Backup&trade; Node label values to match. Ignored if `affinity` is set.                                                                                                                                                             | `[]`                               |
| `backup.affinity`                                                  | Backup&trade; Affinity for backup pod assignment                                                                                                                                                                                    | `{}`                               |
| `backup.nodeSelector`                                              | Backup&trade; Node labels for backup pod assignment                                                                                                                                                                                 | `{}`                               |
| `backup.tolerations`                                               | Backup&trade; Tolerations for backup pod assignment                                                                                                                                                                                 | `[]`                               |
| `backup.uploadProviders.google.enabled`                            | enable upload to google storage bucket                                                                                                                                                                                              | `false`                            |
| `backup.uploadProviders.google.secret`                             | json secret with serviceaccount data to access Google storage bucket                                                                                                                                                                | `""`                               |
| `backup.uploadProviders.google.secretKey`                          | service account secret key name                                                                                                                                                                                                     | `key.json`                         |
| `backup.uploadProviders.google.existingSecret`                     | Name of existing secret object with Google serviceaccount json credentials                                                                                                                                                          | `""`                               |
| `backup.uploadProviders.google.bucketName`                         | google storage bucket name name                                                                                                                                                                                                     | `gs://bucket/influxdb`             |
| `backup.uploadProviders.google.image.registry`                     | Google Cloud SDK image registry                                                                                                                                                                                                     | `REGISTRY_NAME`                    |
| `backup.uploadProviders.google.image.repository`                   | Google Cloud SDK image name                                                                                                                                                                                                         | `REPOSITORY_NAME/google-cloud-sdk` |
| `backup.uploadProviders.google.image.digest`                       | Google Cloud SDK image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag                                                                                                                    | `""`                               |
| `backup.uploadProviders.google.image.pullPolicy`                   | Google Cloud SDK image pull policy                                                                                                                                                                                                  | `IfNotPresent`                     |
| `backup.uploadProviders.google.image.pullSecrets`                  | Specify docker-registry secret names as an array                                                                                                                                                                                    | `[]`                               |
| `backup.uploadProviders.google.resourcesPreset`                    | Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if influxdb.resources is set (influxdb.resources is recommended for production). | `none`                             |
| `backup.uploadProviders.google.resources`                          | Set container requests and limits for different resources like CPU or memory (essential for production workloads)                                                                                                                   | `{}`                               |
| `backup.uploadProviders.azure.enabled`                             | Enable upload to azure storage container                                                                                                                                                                                            | `false`                            |
| `backup.uploadProviders.azure.secret`                              | Secret with credentials to access Azure storage                                                                                                                                                                                     | `""`                               |
| `backup.uploadProviders.azure.secretKey`                           | Service account secret key name                                                                                                                                                                                                     | `connection-string`                |
| `backup.uploadProviders.azure.existingSecret`                      | Name of existing secret object                                                                                                                                                                                                      | `""`                               |
| `backup.uploadProviders.azure.containerName`                       | Destination container                                                                                                                                                                                                               | `influxdb-container`               |
| `backup.uploadProviders.azure.image.registry`                      | Azure CLI image registry                                                                                                                                                                                                            | `REGISTRY_NAME`                    |
| `backup.uploadProviders.azure.image.repository`                    | Azure CLI image repository                                                                                                                                                                                                          | `REPOSITORY_NAME/azure-cli`        |
| `backup.uploadProviders.azure.image.digest`                        | Azure CLI image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag                                                                                                                           | `""`                               |
| `backup.uploadProviders.azure.image.pullPolicy`                    | Azure CLI image pull policy                                                                                                                                                                                                         | `IfNotPresent`                     |
| `backup.uploadProviders.azure.image.pullSecrets`                   | Specify docker-registry secret names as an array                                                                                                                                                                                    | `[]`                               |
| `backup.uploadProviders.azure.resourcesPreset`                     | Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if influxdb.resources is set (influxdb.resources is recommended for production). | `none`                             |
| `backup.uploadProviders.azure.resources`                           | Set container requests and limits for different resources like CPU or memory (essential for production workloads)                                                                                                                   | `{}`                               |
| `backup.uploadProviders.aws.enabled`                               | Enable upload to aws s3 bucket                                                                                                                                                                                                      | `false`                            |
| `backup.uploadProviders.aws.accessKeyID`                           | Access Key ID to access aws s3                                                                                                                                                                                                      | `""`                               |
| `backup.uploadProviders.aws.secretAccessKey`                       | Secret Access Key to access aws s3                                                                                                                                                                                                  | `""`                               |
| `backup.uploadProviders.aws.region`                                | Region of aws s3 bucket                                                                                                                                                                                                             | `us-east-1`                        |
| `backup.uploadProviders.aws.existingSecret`                        | Name of existing secret object                                                                                                                                                                                                      | `""`                               |
| `backup.uploadProviders.aws.bucketName`                            | aws s3 bucket name                                                                                                                                                                                                                  | `s3://bucket/influxdb`             |
| `backup.uploadProviders.aws.endpoint`                              | aws s3 endpoint, no value default public endpoint aws s3 endpoint                                                                                                                                                                   | `""`                               |
| `backup.uploadProviders.aws.image.registry`                        | AWS CLI image registry                                                                                                                                                                                                              | `REGISTRY_NAME`                    |
| `backup.uploadProviders.aws.image.repository`                      | AWS CLI image repository                                                                                                                                                                                                            | `REPOSITORY_NAME/aws-cli`          |
| `backup.uploadProviders.aws.image.digest`                          | AWS CLI image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag                                                                                                                             | `""`                               |
| `backup.uploadProviders.aws.image.pullPolicy`                      | AWS CLI image pull policy                                                                                                                                                                                                           | `IfNotPresent`                     |
| `backup.uploadProviders.aws.image.pullSecrets`                     | Specify docker-registry secret names as an array                                                                                                                                                                                    | `[]`                               |
| `backup.uploadProviders.aws.resourcesPreset`                       | Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if influxdb.resources is set (influxdb.resources is recommended for production). | `none`                             |
| `backup.uploadProviders.aws.resources`                             | Set container requests and limits for different resources like CPU or memory (essential for production workloads)                                                                                                                   | `{}`                               |

## Troubleshooting

Find more information about how to deal with common errors related to Bitnami's Helm charts in [this troubleshooting guide](https://docs.bitnami.com/general/how-to/troubleshoot-helm-chart-issues).

## Upgrading

It's necessary to specify the existing passwords while performing an upgrade to ensure the secrets are not updated with invalid randomly generated passwords. Remember to specify the existing values of the `auth.admin.password`, `user.pwd`, `auth.readUser.password` and `auth.writeUser.password` parameters when upgrading the chart:

```console
helm upgrade my-release oci://REGISTRY_NAME/REPOSITORY_NAME/influxdb \
    --set auth.admin.password=[ADMIN_USER_PASSWORD] \
    --set auth.user.password=[USER_PASSWORD] \
    --set auth.readUser.password=[READ_USER_PASSWORD] \
    --set auth.writeUser.password=[WRITE_USER_PASSWORD]
```

> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`.
> Note: you need to substitute the placeholders _[ADMIN_USER_PASSWORD]_, _[USER_PASSWORD]_, _[READ_USER_PASSWORD]_, and _[WRITE_USER_PASSWORD]_ with the values obtained from instructions in the installation notes.

### To 6.0.0

This major bump changes the following security defaults:

- `runAsGroup` is changed from `0` to `1001`
- `readOnlyRootFilesystem` is set to `true`
- `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.

### To 5.0.0

This major release completely removes support for InfluxDB Relay&trade; because the component is [no longer maintained](https://github.com/influxdata/influxdb-relay/issues/81#issuecomment-824207830) by the original developers. As a consequence, the "high-availability" architecture feature is no longer supported.

To update from the previous major, please follow this steps:

```console
kubectl delete deployments.apps influxdb
helm upgrade influxdb oci://REGISTRY_NAME/REPOSITORY_NAME/influxdb
```

> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`.

### To 4.0.0

This major release completely removes support for InfluxDB&trade; branch 1.x.x. You can use images for versions ~1.x.x taking into account the chart may need some modification to run with them.

If you were using InfluxDB&trade; +2.0 no issues are expected during upgrade.

### To 3.0.0

This major release renames several values in this chart and adds missing features, in order to be inline with the rest of assets in the Bitnami charts repository.

Affected values:

- `influxdb.service.port` was deprecated, we recommend using `influxdb.service.ports.http` instead.
- `influxdb.service.rpcPort` was deprecated, we recommend using `influxdb.service.ports.rpc` instead.
- `relay.service.port` was deprecated, we recommend using `relay.service.ports.http` instead.
- `relay.service.nodePort` was renamed as `relay.service.nodePorts.http`.
- `influxdb.securityContext` split into `influxdb.containerSecurityContext` and `influxdb.podSecurityContext`.
- `relay.securityContext` split into `relay.containerSecurityContext` and `relay.podSecurityContext`.
- `influxdb.updateStrategy` and `relay.updateStrategy`changed from String type (previously default to 'rollingUpdate') to Object type, allowing users to configure other updateStrategy parameters, similar to other charts.

### To 2.0.0

This version adds support to InfluxDB&trade; +2.0, since this version the chart is only verified to work with InfluxDB&trade; +2.0 bitnami images.
However, you can use images for versions ~1.x.x taking into account the chart may need some modification to run with them.

#### Installing InfluxDB&trade; v1 in chart v2

```console
helm install oci://REGISTRY_NAME/REPOSITORY_NAME/influxdb --set image.tag=1.8.3-debian-10-r88
```

> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`.

As a consecuece some breaking changes have been included in this version.

- Authentication values has been moved to `auth.<property>...`.
- We keep `auth.readUser` and `auth.writeUser` user options in order to be compatible with InfluxDB&trade; v1. If you are using InfluxDB&trade; 2.0, please, use the CLI to create user and tokens through initDb scripts at `influxdb.initdbScripts` or the UI due to we are not able to automacally provide a token for them to be used. See more [InfluxDB&trade; 2.0 auth](https://docs.influxdata.com/influxdb/v2.0/security/tokens/)
- InfluxDB&trade; 2.0 has removed database concept, now it is called Bucket so the property `database` has been also moved to `auth.user.bucket`.
- Removed support for `files/docker-entrypoint-initdb.d/*.{sh,txt}`, please use `.influxdb.initdbScripts` or `.Values.influxdb.initdbScriptsCM` instead.
- Removed support for `files/conf/influxdb.conf`, please use `.influxdb.configuration` or `.influxdb.existingConfiguration` instead.
- Removed support for `files/conf/relay.toml`, please use `.Values.relay.configuration` or `.Values.relay.existingConfiguration` instead.
- `ingress.hosts` parameter has been replaced by `ingress.hostname` and `ingress.extraHosts` that may give us a bit more flexibility.

#### Migrating form InfluxDB&trade; v1 to v2

Since this release could mean lot of concepts changes, we strongly recommend to not do it direcly using the chart upgrade. Please, read more info in their [upgrade guide](https://docs.influxdata.com/influxdb/v2.0/upgrade/v1-to-v2/).

We actually recommend to backup all the data form a previous helm release, install new release using latest version of the chart and images and then restore data following their guides.

#### Upgrading the chart form 1.x.x to 2.x.x using InfluxDB&trade; v1 images

> NOTE: Please, create a backup of your database before running any of those actions.

Having an already existing chart release called `influxdb` and deployed like

```console
helm install influxdb oci://REGISTRY_NAME/REPOSITORY_NAME/influxdb
```

> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`.

##### Export secrets and required values to update

```console
export INFLUXDB_ADMIN_PASSWORD=$(kubectl get secret --namespace default influxdb -o jsonpath="{.data.admin-user-password}" | base64 -d)
```

##### Upgrade the chart release

> NOTE: Please remember to migrate all the values to its new path following the above notes, e.g: `adminUser.pwd` -> `auth.admin.password`.

```console
helm upgrade influxdb oci://REGISTRY_NAME/REPOSITORY_NAME/influxdb --set image.tag=1.8.3-debian-10-r99 \
  --set auth.admin.password=${INFLUXDB_ADMIN_PASSWORD}
```

> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`.

### To 1.1.0

This version introduces `bitnami/common`, a [library chart](https://helm.sh/docs/topics/library_charts/#helm) as a dependency. More documentation about this new utility could be found [here](https://github.com/bitnami/charts/tree/main/bitnami/common#bitnami-common-library-chart). Please, make sure that you have updated the chart dependencies before executing any upgrade.

### To 1.0.0

[On November 13, 2020, Helm v2 support was formally finished](https://github.com/helm/charts#status-of-the-project), this major version is the result of the required changes applied to the Helm Chart to be able to incorporate the different features added in Helm v3 and to be consistent with the Helm project itself regarding the Helm v2 EOL.

#### What changes were introduced in this major version?

- Previous versions of this Helm Chart use `apiVersion: v1` (installable by both Helm 2 and 3), this Helm Chart was updated to `apiVersion: v2` (installable by Helm 3 only). [Here](https://helm.sh/docs/topics/charts/#the-apiversion-field) you can find more information about the `apiVersion` field.
- The different fields present in the _Chart.yaml_ file has been ordered alphabetically in a homogeneous way for all the Bitnami Helm Charts

#### Considerations when upgrading to this version

- If you want to upgrade to this version from a previous one installed with Helm v3, you shouldn't face any issues
- If you want to upgrade to this version using Helm v2, this scenario is not supported as this version doesn't support Helm v2 anymore
- If you installed the previous version with Helm v2 and wants to upgrade to this version with Helm v3, please refer to the [official Helm documentation](https://helm.sh/docs/topics/v2_v3_migration/#migration-use-cases) about migrating from Helm v2 to v3

#### Useful links

- <https://docs.vmware.com/en/VMware-Tanzu-Application-Catalog/services/tutorials/GUID-resolve-helm2-helm3-post-migration-issues-index.html>
- <https://helm.sh/docs/topics/v2_v3_migration/>
- <https://helm.sh/blog/migrate-from-helm-v2-to-helm-v3/>

## License

Copyright &copy; 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.