diff --git a/helm/aws-load-balancer-controller/templates/deployment.yaml b/helm/aws-load-balancer-controller/templates/deployment.yaml index 414c890c0..72d636578 100644 --- a/helm/aws-load-balancer-controller/templates/deployment.yaml +++ b/helm/aws-load-balancer-controller/templates/deployment.yaml @@ -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 }}