Skip to content

Commit

Permalink
Add metrics endpoint targetPort
Browse files Browse the repository at this point in the history
  • Loading branch information
balassai committed Nov 22, 2022
1 parent 3a34015 commit 9524c4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charts/kafka-operator/templates/operator-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ spec:
ports:
- name: https
port: 443
targetPort: {{ default 443 .Values.webhook.serverPort }}
targetPort: {{ (.Values.webhook).serverPort | default 443 }}
{{- if and .Values.prometheusMetrics.enabled (not .Values.prometheusMetrics.authProxy.enabled) }}
- name: metrics
port: 8080
targetPort: {{ (.Values.metricEndpoint).port | default 8080 }}
{{- end }}

0 comments on commit 9524c4d

Please sign in to comment.