telegraf-operator

by Helm

Helm chartv1.4.0App v1.3.11

A Helm chart for Kubernetes to deploy telegraf-operator

About this chart

Telegraf-operator Helm chart

Default installation expects cert-manager to be running in the cluster.

Prerequisites

  • Helm v2 or later
  • Kubernetes 1.11+ with Beta APIs enabled

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/telegraf-operator
    

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

    This command deploys Telegraf-operator 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

Configurable parameters, their descriptions, and their default values are stored in values.yaml.

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, use the following command:

    helm upgrade --install my-release \
    --set persistence.enabled=true \
      influxdata/telegraf-operator
    

This command enables persistence.

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

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

    Tip: Use the default values.yaml.

For information about running Telegraf-operator in Docker, see the full image documentation.

Contribute to the chart

helm template --namespace=telegraf-operator telegraf-operator .

Test installation with Kind

kind create cluster --name=telegraf-operator-test
kubectl config use-context kind-telegraf-operator-test
kubectl apply -f tests/influxdb.yml
helm install telegraf-operator .
kubectl apply -f tests/redis.yml
kind delete cluster --name=telegraf-operator-test

Cert-manager integration

For better security there is already an integration with cert-manger >0.13 that can be enabled but you have to provide your own instalation of cert-manager in the cluster

Deploy telegraf-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has telegraf-operator 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 charttelegraf-operator is pinned at v1.4.0 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