influxdb

by Helm

Helm chartv4.12.5App 1.8.10

Scalable datastore for metrics, events, and real-time analytics.

About this chart

InfluxDB Helm chart

InfluxDB is an open source time series database with no external dependencies. It's useful for recording metrics, events, and performing analytics.

The InfluxDB Helm chart uses the Helm package manager to bootstrap an InfluxDB StatefulSet and service on a Kubernetes cluster.

Note: ### If you're using the InfluxDB Enterprise Helm chart, check out InfluxDB Enterprise Helm chart.

Prerequisites

  • Helm v2 or later
  • Kubernetes 1.4+
  • (Optional) PersistentVolume (PV) provisioner support in the underlying infrastructure

Install the chart

  1. Add the InfluxData Helm repository:

    helm repo add influxdata https://helm.influxdata.com/
    
  2. Run the following command, providing a name for your release:

    helm upgrade --install my-release influxdata/influxdb
    

    Tip: --install can be shortened to -i.

    This command deploys InfluxDB on the Kubernetes cluster using the default configuration. To find parameters you can configure during installation, see Configure the chart.

    Tip: To view all Helm chart releases, run helm list.

Uninstall the chart

To uninstall the my-release deployment, use the following command:

helm uninstall my-release

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

Configure the chart

The following table lists configurable parameters, their descriptions, and their default values stored in values.yaml.

ParameterDescriptionDefault
image.repositoryImage repository urlinfluxdb
image.tagImage tag1.8.0-alpine
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsIt will store the repository's credentials to pull imagenil
serviceAccount.createIt will create service accounttrue
serviceAccount.nameService account name""
serviceAccount.annotationsService account annotations{}
livenessProbeHealth check for pod{}
readinessProbeHealth check for pod{}
startupProbeHealth check for pod{}
service.typeKubernetes service typeClusterIP
service.loadBalancerIPA user-specified IP address for service type LoadBalancer to use as External IP (if supported)nil
service.externalIPsA user-specified list of externalIPs to add to the servicenil
service.externalTrafficPolicyA user specified external traffic policynil
service.nodePorts.httpNode port to expose for HTTP API if service.type=NodePort or service.type=LoadBalancerRandom port from range 30000-32767
persistence.enabledBoolean to enable and disable persistancetrue
persistence.existingClaimAn existing PersistentVolumeClaim, ignored if enterprise.enabled=truenil
persistence.storageClassIf set to "-", storageClassName: "", which disables dynamic provisioning. If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. (gp2 on AWS, standard on GKE, AWS & OpenStack
persistence.annotationsAnnotations for volumeClaimTemplatesnil
persistence.accessModeAccess mode for the volumeReadWriteOnce
persistence.sizeStorage size8Gi
podAnnotationsAnnotations for pod{}
podLabelsLabels for pod{}
ingress.enabledBoolean flag to enable or disable ingressfalse
ingress.tlsBoolean to enable or disable tls for ingress. If enabled provide a secret in ingress.secretName containing TLS private key and certificate.false
ingress.secretNameKubernetes secret containing TLS private key and certificate. It is only required if ingress.tls is enabled.nil
ingress.hostnameHostname for the ingress""
ingress.annotationsingress annotationsnil
schedulerNameUse an alternate scheduler, e.g. "stork".nil
nodeSelectorNode labels for pod assignment{}
affinityAffinity for pod assignment{
tolerationsTolerations for pod assignment[]
securityContextsecurityContext for pod{}
envenvironment variables for influxdb container{}
volumesvolumes stanza(s) to be used in the main containernil
mountPointsvolumeMount stanza(s) to be used in the main containernil
extraContainersAdditional containers to be added to the pod{}
config.reporting_disabledDetailsfalse
config.rpcRPC address for backup and storagebind-address: ":8088"
config.metaDetails{}
config.dataDetails{}
config.coordinatorDetails{}
config.retentionDetails{}
config.shard_precreationDetails{}
config.monitorDetails{}
config.httpDetailsenabled: truebind-address: ":8086"flux-enabled: true
config.loggingDetails{}
config.subscriberDetails{}
config.graphiteDetails{}
config.collectdDetails{}
config.opentsdbDetails{}
config.udpDetails{}
config.continous_queriesDetails{}
config.tlsDetails{}
initScripts.enabledBoolean flag to enable and disable initscripts. If the container finds any files with the extensions .sh or .iql inside of the /docker-entrypoint-initdb.d folder, it will execute them. The order they are executed in is determined by the shell. This is usually alphabetical order.false
initScripts.scriptsInit scripts{}
backup.enabledEnable backups, if true must configure one of the storage providersfalse
backup.gcsGoogle Cloud Storage confignil
backup.azureAzure Blob Storage confignil
backup.s3Amazon S3 (or compatible) confignil
backup.scheduleSchedule to run jobs in cron format0 0 * * *
backup.startingDeadlineSecondsDeadline in seconds for starting the job if it misses its scheduled time for any reasonnil
backup.annotationsAnnotations for backup cronjob{}
backup.podAnnotationsAnnotations for backup cronjob pods{}
backup.persistence.enabledBoolean to enable and disable persistancefalse
backup.persistence.storageClassIf set to "-", storageClassName: "", which disables dynamic provisioning. If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. (gp2 on AWS, standard on GKE, AWS & OpenStack
backup.persistence.annotationsAnnotations for volumeClaimTemplates{}
backup.persistence.accessModeAccess mode for the volumeReadWriteOnce
backup.persistence.sizeStorage size8Gi
backup.resourcesResources requests and limits for backup podsephemeral-storage: 8Gi

To configure the chart, do either of the following:

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

    helm upgrade --install my-release \
      --set persistence.enabled=true,persistence.size=200Gi \
        influxdata/influxdb
    

    This command enables persistence and changes the size of the requested data volume to 200GB.

  • Provide a YAML file that specifies the parameter values while installing the chart. For example, use the following command:

    helm upgrade --install my-release -f values.yaml influxdata/influxdb
    

    Tip: Use the default values.yaml.

For information about running InfluxDB in Docker, see the full image documentation.

Persistence

The InfluxDB image stores data in the /var/lib/influxdb directory in the container.

If persistence is enabled, a Persistent Volume associated with StatefulSet is provisioned. The volume is created using dynamic volume provisioning. In case of a disruption (for example,

Deploy influxdb with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has influxdb on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartinfluxdb is pinned at v4.12.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply