influxdb

by KubeGems

Helm chartv2.2.11App 2.0.7

InfluxDB(TM) is an open source time-series database designed to handle large write and read loads in real-time.

About this chart

InfluxDBTM

InfluxDBTM is an open source time-series database designed to handle large write and read loads in real-time.

Disclaimer: The respective trademarks mentioned in the offering are owned by the respective companies. We do not provide a commercial license for any of these products. This listing has an open-source license. InfluxDBTM and InfluxDB RelayTM are run and maintained by InfluxData, which is a completely separate project from Bitnami.

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/influxdb

Introduction

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.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.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:

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/influxdb

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

Uninstalling the Chart

To uninstall/delete the my-release statefulset:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release. Use the option --purge to delete all history too.

Parameters

The following tables lists the configurable parameters of the InfluxDBTM chart and their default values.

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
global.storageClassGlobal storage class for dynamic provisioningnil

Common parameters

ParameterDescriptionDefault
nameOverrideString to partially override influxdb.fullname template with a string (will prepend the release name)nil
fullnameOverrideString to fully override influxdb.fullname template with a stringnil
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainDefault Kubernetes cluster domaincluster.local
extraDeployArray of extra objects to deploy with the release[] (evaluated as a template)
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)nil
networkPolicy.enabledEnable NetworkPolicyfalse
networkPolicy.allowExternalDon't require client label for connectionstrue
persistence.enabledEnable data persistencetrue
persistence.existingClaimUse a existing PVC which must be created manually before boundnil
persistence.storageClassSpecify the storageClass used to provision the volumenil
persistence.accessModesAccess mode of data volume["ReadWriteOnce"]
persistence.sizeSize of data volume8Gi

InfluxDBTM parameters

ParameterDescriptionDefault
image.registryInfluxDBTM image registrydocker.io
image.repositoryInfluxDBTM image namebitnami/influxdb
image.tagInfluxDBTM image tag{TAG_NAME}
image.pullPolicyInfluxDBTM image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
image.debugSpecify if debug logs should be enabledfalse
architectureInfluxDBTM architecture (standalone or high-availability)standalone
auth.enabledEnable/disable authentication (Variable to keep compatibility with InfluxDBTM v1, in v2 it will be ignored)true
auth.admin.usernameInfluxDBTM admin user nameadmin
auth.admin.passwordInfluxDBTM admin user's passwordnil
auth.admin.tokenInfluxDBTM admin user's token. Only valid with InfluxDBTM v2nil
auth.admin.orgInfluxDBTM admin user's org. Only valid with InfluxDBTM v2primary
auth.admin.bucketInfluxDBTM admin user's bucket. Only valid with InfluxDBTM v2primary
auth.admin.usePasswordFileMount admin user's password as file instead of environment variablefalse
auth.createUserTokenWhether 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 reffalse
auth.user.usernameName for InfluxDBTM user with 'admin' privileges on the bucket specified at auth.user.bucket and auth.user.org or auth.admin.orgnil
auth.user.passwordInfluxDBTM password for user.name usernil
auth.user.usePasswordFileMount user.name user's password as file instead of environment variablenil
auth.user.bucketBucket to be created on first runmy_database
auth.user.orgOrg to be created on first runmy_database
auth.readUser.usernameName for InfluxDBTM user with 'read' privileges on the bucket specified at auth.user.bucketnil

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 v2.2.11 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