Skip to content

Commit

Permalink
feat: support define telegraf container ports
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkuan committed Aug 12, 2024
1 parent 6b6134e commit 641f670
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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 641f670

Please sign in to comment.