From 1740c2a6198456169e0cbfadb08650077f24bae4 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Mon, 17 Mar 2025 23:13:00 +0800 Subject: [PATCH] fix: change service monitor port to targetPort in configuration Signed-off-by: zhenyus --- .../authentication/templates/authentication/servicemonitor.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/servicemonitor.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/servicemonitor.yaml index c9ddaf8f..8b8172ae 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/servicemonitor.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/servicemonitor.yaml @@ -15,7 +15,7 @@ metadata: spec: endpoints: - path: /api/_/metrics - port: {{ .Values.authentication.serviceMonitor.port | quote }} + targetPort: {{ .Values.authentication.serviceMonitor.port }} {{- if .Values.authentication.serviceMonitor.interval }} interval: {{ .Values.authentication.serviceMonitor.interval }} {{- end }}