Skip to content

Commit

Permalink
Updated deployment for prometheus.io annotations when sericeMonitor i…
Browse files Browse the repository at this point in the history
…s enabled
  • Loading branch information
tamboliasir1 committed Apr 11, 2022
1 parent b5c8905 commit c9675c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm/aws-load-balancer-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ spec:
{{- toYaml .Values.podLabels | nindent 8 }}
{{- end }}
annotations:
{{- if not .Values.serviceMonitor.enabled }}
prometheus.io/scrape: "true"
prometheus.io/port: "{{ (split ":" .Values.metricsBindAddr)._1 | default 8080 }}"
{{- end}}
{{- if .Values.podAnnotations }}
{{- toYaml .Values.podAnnotations | nindent 8 }}
{{- end }}
Expand Down

0 comments on commit c9675c4

Please sign in to comment.