Skip to content

Commit c1b9579

Browse files
authored
Merge pull request #2606 from tamboliasir1/issue-2601
Updated deployment for prometheus.io annotations when sericeMonitor i…
2 parents b614afa + c9675c4 commit c1b9579

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

helm/aws-load-balancer-controller/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ spec:
2222
{{- toYaml .Values.podLabels | nindent 8 }}
2323
{{- end }}
2424
annotations:
25+
{{- if not .Values.serviceMonitor.enabled }}
2526
prometheus.io/scrape: "true"
2627
prometheus.io/port: "{{ (split ":" .Values.metricsBindAddr)._1 | default 8080 }}"
28+
{{- end}}
2729
{{- if .Values.podAnnotations }}
2830
{{- toYaml .Values.podAnnotations | nindent 8 }}
2931
{{- end }}

0 commit comments

Comments
 (0)