diff --git a/charts/telegraf/Chart.yaml b/charts/telegraf/Chart.yaml index bc37b85c..4615bb89 100755 --- a/charts/telegraf/Chart.yaml +++ b/charts/telegraf/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: telegraf -version: 1.8.52 +version: 1.8.53 appVersion: 1.31.3 deprecated: false description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics. diff --git a/charts/telegraf/templates/deployment.yaml b/charts/telegraf/templates/deployment.yaml index 0b018930..81a046a7 100644 --- a/charts/telegraf/templates/deployment.yaml +++ b/charts/telegraf/templates/deployment.yaml @@ -41,6 +41,10 @@ spec: {{- end }} image: "{{ .Values.image.repo }}:{{ .Values.image.tag }}" imagePullPolicy: {{ default "" .Values.image.pullPolicy | quote }} +{{- if .Values.containerPorts }} + ports: +{{ toYaml .Values.containerPorts | indent 10 }} +{{- end }} resources: {{ toYaml .Values.resources | indent 10 }} {{- if .Values.args }} diff --git a/charts/telegraf/values.yaml b/charts/telegraf/values.yaml index 18c28e21..0324738f 100644 --- a/charts/telegraf/values.yaml +++ b/charts/telegraf/values.yaml @@ -180,3 +180,8 @@ pdb: create: true minAvailable: 1 # maxUnavailable: 1 + +# containerPorts: +# - name: http +# containerPort: 9273 +# protocol: TCP