Skip to content

Commit

Permalink
Merge pull request #2606 from tamboliasir1/issue-2601
Browse files Browse the repository at this point in the history
Updated deployment for prometheus.io annotations when sericeMonitor i…
  • Loading branch information
k8s-ci-robot authored Apr 15, 2022
2 parents b614afa + c9675c4 commit c1b9579
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 c1b9579

Please sign in to comment.