Unverified Commit ee6256e9 authored by Enno Lohmeier's avatar Enno Lohmeier Committed by GitHub

influxdb/telegraf: add configurable pod labels (#169)

* telegraf: add podLabels * influxdb: add podLabels
parent f2faddaf
apiVersion: v1 apiVersion: v1
name: influxdb name: influxdb
version: 4.8.2 version: 4.8.3
appVersion: 1.8.0 appVersion: 1.8.0
description: Scalable datastore for metrics, events, and real-time analytics. description: Scalable datastore for metrics, events, and real-time analytics.
keywords: keywords:
......
...@@ -69,6 +69,7 @@ The following table lists configurable parameters, their descriptions, and their ...@@ -69,6 +69,7 @@ The following table lists configurable parameters, their descriptions, and their
| persistence.accessMode | Access mode for the volume | ReadWriteOnce | | persistence.accessMode | Access mode for the volume | ReadWriteOnce |
| persistence.size | Storage size | 8Gi | | persistence.size | Storage size | 8Gi |
| podAnnotations | Annotations for pod | {} | | podAnnotations | Annotations for pod | {} |
| podLabels | Labels for pod | {} |
| ingress.enabled | Boolean flag to enable or disable ingress | false | | ingress.enabled | Boolean flag to enable or disable ingress | false |
| ingress.tls | Boolean to enable or disable tls for ingress. If enabled provide a secret in `ingress.secretName` containing TLS private key and certificate. | false | | ingress.tls | Boolean to enable or disable tls for ingress. If enabled provide a secret in `ingress.secretName` containing TLS private key and certificate. | false |
| ingress.secretName | Kubernetes secret containing TLS private key and certificate. It is `only` required if `ingress.tls` is enabled. | nil | | ingress.secretName | Kubernetes secret containing TLS private key and certificate. It is `only` required if `ingress.tls` is enabled. | nil |
......
...@@ -158,6 +158,9 @@ resources: {} ...@@ -158,6 +158,9 @@ resources: {}
# Annotations to be added to InfluxDB pods # Annotations to be added to InfluxDB pods
podAnnotations: {} podAnnotations: {}
# Labels to be added to InfluxDB pods
podLabels: {}
ingress: ingress:
enabled: false enabled: false
tls: false tls: false
......
apiVersion: v1 apiVersion: v1
name: telegraf name: telegraf
version: 1.7.21 version: 1.7.22
appVersion: 1.14 appVersion: 1.14
deprecated: false deprecated: false
description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics. description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
......
...@@ -15,6 +15,9 @@ spec: ...@@ -15,6 +15,9 @@ spec:
labels: labels:
app.kubernetes.io/name: {{ include "telegraf.name" . }} app.kubernetes.io/name: {{ include "telegraf.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
{{- with .Values.podLabels }}
{{ toYaml . | indent 8 }}
{{- end }}
annotations: annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- if .Values.podAnnotations }} {{- if .Values.podAnnotations }}
......
...@@ -11,6 +11,8 @@ image: ...@@ -11,6 +11,8 @@ image:
podAnnotations: {} podAnnotations: {}
podLabels: {}
imagePullSecrets: [] imagePullSecrets: []
## Configure args passed to Telegraf containers ## Configure args passed to Telegraf containers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment