Commit 314d0630 authored by Austin Hartzheim's avatar Austin Hartzheim Committed by Kubernetes Prow Robot

[stable/telegraf] add support for annotations on services (#19380)

parent 2d6c6f0e
apiVersion: v1 apiVersion: v1
name: telegraf name: telegraf
version: 1.1.9 version: 1.2.0
appVersion: 1.12 appVersion: 1.12
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.
......
...@@ -8,6 +8,10 @@ metadata: ...@@ -8,6 +8,10 @@ metadata:
helm.sh/chart: {{ include "telegraf.chart" . }} helm.sh/chart: {{ include "telegraf.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
spec: spec:
type: {{ .Values.service.type }} type: {{ .Values.service.type }}
ports: ports:
......
...@@ -30,6 +30,8 @@ resources: {} ...@@ -30,6 +30,8 @@ resources: {}
service: service:
enabled: true enabled: true
type: ClusterIP type: ClusterIP
annotations: {}
## Exposed telegraf configuration ## Exposed telegraf configuration
## For full list of possible values see `/docs/all-config-values.yaml` and `/docs/all-config-values.toml` ## For full list of possible values see `/docs/all-config-values.yaml` and `/docs/all-config-values.toml`
## ref: https://docs.influxdata.com/telegraf/v1.1/administration/configuration/ ## ref: https://docs.influxdata.com/telegraf/v1.1/administration/configuration/
......
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