Member-only story
Deploying InfluxDB2 server with helm chart
InfluxDB is an open-source time series database developed by InfluxData. InfluxDB is purpose-built to collect, store, process and visualize metrics and events, specially used lot on the operations monitoring, application metrics, Internet of Things sensor data, and real-time analytics fields.
As of writing InfluDb v2.0.6 is the latest version and InfluxDb has released v2.0.0 around November 2020. Before that they were releasing v1.x.x versions.
I wanted to highlight these versions specifically, since InfluxDb v1.x.x and v2.x.x versions has many differences.
Following articles gives some context on InfluxDB v2 new features.
- https://www.influxdata.com/blog/influxdb-2-0-open-source-is-generally-available/
- https://www.influxdata.com/blog/introducing-the-next-generation-influxdb-2-0-platform/
Also, need to note InfluxDB got two versions called opensource and Enterprise as well.
Here, I am trying to explain how the opensource InfluxDB v2 can be installed on a Kubernetes cluster using Helm charts.
Influxdata team developed helm charts can be found on the git repo https://github.com/influxdata/helm-charts/tree/master/charts/influxdb2
Also another helm chart developed by bitnami team available on the git repo https://github.com/bitnami/charts/tree/master/bitnami/influxdb
After evaluating two charts, I decided to go with the bitnami chart since it had more customization support.
You can grab the values.yaml file from the bitnami github and change the parameters as per your requirements.
In my case, I enabled persistence and tried to use an existingClaim. See sample below
## Persistence parameters
##
persistence:
enabled: true
## A manually managed Persistent Volume and Claim
## If defined, PVC must be created manually before volume will be bound
## The value is evaluated as a template
##
existingClaim: influxdb2-pv-claim
Then, Installed helm chart with below commands
helm repo add bitnami https://charts.bitnami.com/bitnamihelm upgrade --install influxdb2-release bitnami/influxdb -f /Users/asankav/code/influx/bitnami/values.yaml
Helm install command returns the following results on the shell