Skip to content

Commit

Permalink
feat: support define telegraf container ports (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkuan committed Aug 13, 2024
1 parent 34d912d commit b217111
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/telegraf/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions charts/telegraf/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/telegraf/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,8 @@ pdb:
create: true
minAvailable: 1
# maxUnavailable: 1

# containerPorts:
# - name: http
# containerPort: 9273
# protocol: TCP

0 comments on commit b217111

Please sign in to comment.