influxdb-enterprise
by Helm
Run InfluxDB Enterprise on Kubernetes
About this chart
InfluxDB Enterprise
Quick Start
helm repo add influxdata https://helm.influxdata.com/
helm upgrade --install influxdb influxdata/influxdb-enterprise --namespace monitoring
Tip:
helm upgrade --install [RELEASE] [CHART] [FLAGS]can be shortened :helm upgrade -i [RELEASE] [CHART] [FLAGS]
Introduction
InfluxDB Enterprise includes features designed for production workloads, including high availability and horizontal scaling. InfluxDB Enterprise requires an InfluxDB Enterprise license. This chart bootstraps an InfluxDB Enterprise cluster, with a StatefulSet for both the meta and data nodes.
Prerequisites
- Kubernetes 1.4+
- PV provisioner support in the underlying infrastructure (optional)
Installing the Chart
To install the chart with the release name my-release:
helm upgrade --install my-release influxdata/influxdb-enterprise
The command deploys InfluxDB Enterprise on the Kubernetes cluster in the default configuration. The configuration 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 deployment:
helm uninstall my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configure the InfluxDB Enterprise chart
To enable InfluxDB Enterprise, set the following keys and values in a values file provided to Helm.
| Key | Description | Recommended value |
|---|---|---|
livenessProbe.initalDelaySeconds | Used to allow enough time to join meta nodes to a cluster | 3600 |
image.tag | Set to a data image. See https://hub.docker.com/_/influxdb for details | data |
service.ClusterIP | Use a headless service for StatefulSets | "None" |
env.name[_HOSTNAME] | Used to provide a unique name.service for InfluxDB. See values.yaml for an example | valueFrom.fieldRef.fieldPath: metadata.name |
enterprise.enabled | Create StatefulSets for use with influx-data and influx-meta images | true |
enterprise.licensekey | License for InfluxDB Enterprise | |
enterprise.clusterSize | Replicas for influx StatefulSet | Dependent on license |
enterprise.meta.image.tag | Set to an meta image. See https://hub.docker.com/_/influxdb for details | meta |
enterprise.meta.clusterSize | Replicas for influxdb-meta StatefulSet. | 3 |
enterprise.meta.resources | Resources requests and limits for meta influxdb-meta pods | See values.yaml |
Join pods to InfluxDB Enterprise cluster
Meta and data pods must be joined using the command influxd-ctl found on meta pods.
We recommend running influxd-ctl on one and only one meta pod and joining meta pods together before data pods. For each meta pod, run influxd-ctl.
In the following examples, we use the pod names influxdb-meta-0 and influxdb-0 and the service name influxdb.
For example, using the default settings, your script should look something like this:
kubectl exec influxdb-meta-0 influxd-ctl add-meta influxdb-meta-0.influxdb-meta:8091
From the same meta pod, for each data pod, run influxd-ctl. With default settings, your script should look something like this:
kubectl exec influxdb-meta-0 influxd-ctl add-data influxdb-0.influxdb:8088
When using influxd-ctl, use the appropriate DNS name for your pods, following the naming scheme of pod.service.
Secrets
This chart requires the following secrets in order to function:
- License
- Shared Secret
Optionally, you can also provide secrets to enable:
- Authentication
- TLS
License
InfluxDB Enterprise requires a license. To provide the license, you can either store it in a secret or provide a string within your values.yaml. We recommend using a secret.
license:
# You can put your license key here for testing this chart out,
# but we STRONGLY recommend using a license file stored in a secret
# when you ship to production.
# key: "your license key"
secret:
name: license
key: json
Shared Secret
The meta cluster requires a shared internal secret to secure communication. This must be provided by specifying a secret name in the values.yaml file.
The Kubernetes Secret MUST contain a key called secret that is a randomly generated string.
Please see example resources to see what this looks like.
meta:
sharedSecret:
secretName: shared-secret
Authentication (Optional)
If you want to configure authentication for your data nodes, you must provide the following within your values.yaml:
Please see example resources to see what this looks like.
# A secret with keys "username" and "password" is required
bootstrap:
auth:
secretName: auth
TLS (Optional)
If you want to configure TLS for your meta and/or data nodes, you must enable TLS inside the values.yaml. An example is below, but you'll need to replicate for the data nodes too:
meta:
https:
enabled: true
If you want to use CertManager to provision the TLS certificates, you can add:
meta:
https:
useCertManager: true
insecure: true # This chart uses an untrusted CA, so we need to mark the keys as insecure
Otherwise, you need to provide a secret with the keys tls.crt and tls.key. An example exists inside the example resources.
meta:
https:
secret:
name: my-tls-secret
defaultMode: 0600 # Restrictive mode required for TLS private key files
insecure: true # Only enable if your CA isn't trusted
If you cannot mount TLS files with restrictive permissions, you can temporarily skip local certificate/key permission checks:
meta:
https:
insecureCertificate: true
data:
https:
insecureCertificate: true
Use this only as a temporary compatibility workaround. It reduces TLS safety and should be disabled after fixing secret file permissions.
DDL/DML (Optional)
If you wish to create databases or import data after installation, we've provided this DDL/DML hook. Your config map must contain the keys ddl and dml.
Please see example resources to see what this looks like.
# A ConfigMap with keys "ddl" and "dml" is required
bootstrap:
ddldml:
configMap: ddl-dml
Deploy influxdb-enterprise with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has influxdb-enterprise 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartinfluxdb-enterprise is pinned at v0.2.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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