InfluxDB(TM) is an open source time-series database. It is a core component of the TICK (Telegraf, InfluxDB(TM), Chronograf, Kapacitor) stack.
InfluxDB(TM) is a trademark owned by InfluxData, which is not affiliated with, and does not endorse, this site.
helm install my-release oci://REGISTRY_NAME/REPOSITORY_NAME/influxdb
Note: You need to substitute the placeholders
REGISTRY_NAME
andREPOSITORY_NAME
with a reference to your Helm chart registry and repository.
This chart bootstraps a influxdb deployment on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
To install the chart with the release name my-release
:
helm install my-release oci://REGISTRY_NAME/REPOSITORY_NAME/influxdb
Note: You need to substitute the placeholders
REGISTRY_NAME
andREPOSITORY_NAME
with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to useREGISTRY_NAME=registry-1.docker.io
andREPOSITORY_NAME=bitnamicharts
.
These commands deploy influxdb on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Bitnami charts allow setting resource requests and limits for all containers inside the chart deployment. These are inside the resources
value (check parameter table). Setting requests is essential for production workloads and these should be adapted to your specific use case.
To make this process easier, the chart contains the resourcesPreset
values, which automatically sets the resources
section according to different presets. Check these presets in the bitnami/common chart. However, in production workloads using resourcePreset
is discouraged as it may not fully adapt to your specific needs. Find more information on container resource management in the official Kubernetes documentation.
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:
------------------
| Ingress |
| Controller |
------------------
|
| /query
| /write
\/
----------------
| InfluxDB(TM) |
| svc |
----------------
|
\/
--------------
| InfluxDB(TM) |
| Server |
| Pod |
--------------
ingress.enabled=true
to expose InfluxDB™ through Ingress.influxdb.service.type=ClusterIP
to choose this service type.NodeIP:NodePort
. Set influxdb.service.type=NodePort
to choose this service type.influxdb.service.type=LoadBalancer
to choose this service type.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™.
Alternatively, you can specify the InfluxDB™ 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.
In case you want to add extra environment variables, you can use the influxdb.extraEnvVars
property.
extraEnvVars:
- name: INFLUXDB_DATA_QUERY_LOG_ENABLED
value: "true"
The 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
.
The Bitnami InfluxDB™ image allows you to migrate your InfluxDB 1.x data into 2.x format by setting the INFLUXDB_INIT_MODE=upgrade
environment variable, and mounting the InfluxDB 1.x data into the container (let the initialization logic know where it is located with the INFLUXDB_INIT_V1_DIR
variable). Do not point INFLUXDB_INIT_V1_DIR
into INFLUXDB_VOLUME_DIR
(default: /bitnami/influxdb
), or the upgrade process will fail.
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.
As an alternative, you can use of the preset configurations for pod affinity, pod anti-affinity, and node affinity available at the bitnami/common chart. To do so, set the XXX.podAffinityPreset
, XXX.podAntiAffinityPreset
, or XXX.nodeAffinityPreset
parameters.
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.
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
.
Name | Description | Value |
---|---|---|
global.imageRegistry |
Global Docker image registry | "" |
global.imagePullSecrets |
Global Docker registry secret names as an array | [] |
global.defaultStorageClass |
Global default StorageClass for Persistent Volume(s) | "" |
global.storageClass |
DEPRECATED: use global.defaultStorageClass instead | "" |
global.compatibility.openshift.adaptSecurityContext |
Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation) | auto |
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"] |
Name | Description | Value |
---|---|---|
image.registry |
InfluxDB™ image registry | REGISTRY_NAME |
image.repository |
InfluxDB™ image repository | REPOSITORY_NAME/influxdb |
image.digest |
InfluxDB™ image digest in the way sha256:aa…. Please note this parameter, if set, will override the tag | "" |
image.pullPolicy |
InfluxDB™ 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™ 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™ admin user name | admin |
auth.admin.password |
InfluxDB™ admin user’s password | "" |
auth.admin.token |
InfluxDB™ admin user’s token. Only valid with InfluxDB™ v2 | "" |
auth.admin.org |
InfluxDB™ admin user’s org. Only valid with InfluxDB™ v2 | primary |
auth.admin.bucket |
InfluxDB™ admin user’s bucket. Only valid with InfluxDB™ v2 | primary |
auth.admin.retention |
InfluxDB™ admin user’s bucket retention. Only valid with InfluxDB™ 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 | false |
auth.user.username |
Name for InfluxDB™ user with ‘admin’ privileges on the bucket specified at auth.user.bucket and auth.user.org or auth.admin.org |
"" |
auth.user.password |
InfluxDB™ 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™ user with ‘read’ privileges on the bucket specified at auth.user.bucket |
"" |
auth.readUser.password |
InfluxDB™ password for auth.readUser.username user |
"" |
auth.writeUser.username |
Name for InfluxDB™ user with ‘read’ privileges on the bucket specified at auth.user.bucket |
"" |
auth.writeUser.password |
InfluxDB™ password for auth.writeUser.username user |
"" |
auth.existingSecret |
Name of existing Secret object with InfluxDB™ 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™ 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™ Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard |
"" |
influxdb.podAntiAffinityPreset |
InfluxDB™ Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard |
soft |
influxdb.nodeAffinityPreset.type |
InfluxDB™ Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard |
"" |
influxdb.nodeAffinityPreset.key |
InfluxDB™ Node label key to match Ignored if affinity is set. |
"" |
influxdb.nodeAffinityPreset.values |
InfluxDB™ Node label values to match. Ignored if affinity is set. |
[] |
influxdb.affinity |
InfluxDB™ Affinity for pod assignment | {} |
influxdb.nodeSelector |
InfluxDB™ Node labels for pod assignment | {} |
influxdb.tolerations |
InfluxDB™ Tolerations for pod assignment | [] |
influxdb.podAnnotations |
Annotations for InfluxDB™ pods | {} |
influxdb.podLabels |
Extra labels for InfluxDB™ pods | {} |
influxdb.automountServiceAccountToken |
Mount Service Account token in pod | false |
influxdb.hostAliases |
InfluxDB™ pods host aliases | [] |
influxdb.updateStrategy.type |
InfluxDB™ statefulset/deployment strategy type | RollingUpdate |
influxdb.priorityClassName |
InfluxDB™ 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™ pods | OrderedReady |
influxdb.podSecurityContext.enabled |
Enabled InfluxDB™ 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™ 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™ container(s) to automate configuration before or after startup | {} |
influxdb.extraEnvVars |
Array containing extra env vars to configure InfluxDB™ | [] |
influxdb.extraEnvVarsCM |
Name of existing ConfigMap containing extra env vars for InfluxDB™ nodes | "" |
influxdb.extraEnvVarsSecret |
Name of existing Secret containing extra env vars for InfluxDB™ 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™ container HTTP port | 8086 |
influxdb.containerPorts.rpc |
InfluxDB™ 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™ pod(s) | [] |
influxdb.initContainers |
Add additional init containers to the InfluxDB™ 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™ HTTP port | 8086 |
influxdb.service.ports.rpc |
InfluxDB™ 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™ service external traffic policy | Cluster |
influxdb.service.extraPorts |
Extra ports to expose (normally used with the sidecar value) |
[] |
influxdb.service.annotations |
Annotations for InfluxDB™ service | {} |
influxdb.service.sessionAffinity |
Session Affinity for Kubernetes service, can be “None” or “ClientIP” | None |
influxdb.service.sessionAffinityConfig |
Additional settings for the sessionAffinity | {} |
Name | Description | Value |
---|---|---|
collectd.enabled |
InfluxDB Collectd™ service enable | false |
collectd.service.type |
Kubernetes service type (ClusterIP , NodePort or LoadBalancer ) |
ClusterIP |
collectd.service.port |
InfluxDB Collectd™ 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™ 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™ service | {} |
collectd.service.sessionAffinity |
Session Affinity for Kubernetes service, can be “None” or “ClientIP” | None |
collectd.service.sessionAffinityConfig |
Additional settings for the sessionAffinity | {} |
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 | [] |
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™ 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 |
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 |
Name | Description | Value |
---|---|---|
backup.enabled |
Enable InfluxDB™ 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™ 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™ 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 ™ Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard |
"" |
backup.podAntiAffinityPreset |
Backup™ Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard |
soft |
backup.nodeAffinityPreset.type |
Backup™ Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard |
"" |
backup.nodeAffinityPreset.key |
Backup™ Node label key to match Ignored if affinity is set. |
"" |
backup.nodeAffinityPreset.values |
Backup™ Node label values to match. Ignored if affinity is set. |
[] |
backup.affinity |
Backup™ Affinity for backup pod assignment | {} |
backup.nodeSelector |
Backup™ Node labels for backup pod assignment | {} |
backup.tolerations |
Backup™ 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) | {} |
Find more information about how to deal with common errors related to Bitnami’s Helm charts in this troubleshooting guide.
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:
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
andREPOSITORY_NAME
with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to useREGISTRY_NAME=registry-1.docker.io
andREPOSITORY_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.
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.
This major release completely removes support for InfluxDB Relay™ because the component is no longer maintained 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:
kubectl delete deployments.apps influxdb
helm upgrade influxdb oci://REGISTRY_NAME/REPOSITORY_NAME/influxdb
Note: You need to substitute the placeholders
REGISTRY_NAME
andREPOSITORY_NAME
with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to useREGISTRY_NAME=registry-1.docker.io
andREPOSITORY_NAME=bitnamicharts
.
This major release completely removes support for InfluxDB™ 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™ +2.0 no issues are expected during upgrade.
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.This version adds support to InfluxDB™ +2.0, since this version the chart is only verified to work with InfluxDB™ +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.
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
andREPOSITORY_NAME
with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to useREGISTRY_NAME=registry-1.docker.io
andREPOSITORY_NAME=bitnamicharts
.
As a consecuece some breaking changes have been included in this version.
auth.<property>...
.auth.readUser
and auth.writeUser
user options in order to be compatible with InfluxDB™ v1. If you are using InfluxDB™ 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™ 2.0 authdatabase
has been also moved to auth.user.bucket
.files/docker-entrypoint-initdb.d/*.{sh,txt}
, please use .influxdb.initdbScripts
or .Values.influxdb.initdbScriptsCM
instead.files/conf/influxdb.conf
, please use .influxdb.configuration
or .influxdb.existingConfiguration
instead.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.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.
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.
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
helm install influxdb oci://REGISTRY_NAME/REPOSITORY_NAME/influxdb
Note: You need to substitute the placeholders
REGISTRY_NAME
andREPOSITORY_NAME
with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to useREGISTRY_NAME=registry-1.docker.io
andREPOSITORY_NAME=bitnamicharts
.
export INFLUXDB_ADMIN_PASSWORD=$(kubectl get secret --namespace default influxdb -o jsonpath="{.data.admin-user-password}" | base64 -d)
NOTE: Please remember to migrate all the values to its new path following the above notes, e.g:
adminUser.pwd
->auth.admin.password
.
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
andREPOSITORY_NAME
with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to useREGISTRY_NAME=registry-1.docker.io
andREPOSITORY_NAME=bitnamicharts
.
This version introduces bitnami/common
, a library chart as a dependency. More documentation about this new utility could be found here. Please, make sure that you have updated the chart dependencies before executing any upgrade.
On November 13, 2020, Helm v2 support was formally finished, 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.
apiVersion: v1
(installable by both Helm 2 and 3), this Helm Chart was updated to apiVersion: v2
(installable by Helm 3 only). Here you can find more information about the apiVersion
field.Copyright © 2024 Broadcom. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.