Skip to content

Commit

Permalink
Add metrics port to the operator deployment.
Browse files Browse the repository at this point in the history
Even if the `.Values.prometheus.operator.enabled` was set to `true`, the
operator Deployment was not declaring an additional port for exposing
metrics. This behavior differs to the one that e.g. webhooks have.

This PR adds the missing port declaration.

Signed-off-by: Milan Plzik <milan.plzik@grafana.com>
  • Loading branch information
mplzik committed Oct 30, 2023
1 parent dd9c890 commit 8c2e2c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions keda/templates/manager/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ spec:
- containerPort: 8080
name: http
protocol: TCP
{{- if .Values.prometheus.operator.enabled }}
- containerPort: {{ .Values.prometheus.operator.port }}
name: metrics
protocol: TCP
{{- end }}
env:
- name: WATCH_NAMESPACE
value: {{ .Values.watchNamespace | quote }}
Expand Down

0 comments on commit 8c2e2c8

Please sign in to comment.