Company
Date Published
Author
Community
Word count
1047
Language
English
Hacker News points
None

Summary

This tutorial discusses deploying InfluxDB inside a Kubernetes cluster and using its Python client to send data to it. The author assumes control of a Kubernetes cluster, installs and sets up kubectl, clones the repository containing the deployment script, applies the `influx.yaml` file to create the namespace, statefulset, and service for InfluxDB version 2.0.1, creates an ingress resource with the DNS name of the created cluster, and runs the Python client script to connect to InfluxDB via a generated token. The script defines a function `influx()` that uses the InfluxDBClient library to write data to InfluxDB every 5 seconds, including the free memory of the host in Gb. The tutorial concludes by highlighting various use cases for using the Python client with InfluxDB and providing related blog posts and resources.