From d92d90a3ed6e61dc8a45537598e3361575ca44e5 Mon Sep 17 00:00:00 2001 From: senanjude0 Date: Thu, 30 Jul 2026 10:53:23 +0530 Subject: [PATCH] update pm template to use portNumber instead of targetPort --- src/common/templates/_monitoring.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/templates/_monitoring.tpl b/src/common/templates/_monitoring.tpl index 9a443ab..c30a9dd 100644 --- a/src/common/templates/_monitoring.tpl +++ b/src/common/templates/_monitoring.tpl @@ -117,7 +117,7 @@ spec: matchLabels: {{ .label }}: {{ default $.Chart.Name .name }} podMetricsEndpoints: - - targetPort: {{ default 8889 (int $port) }} + - portNumber: {{ default 8889 (int $port) }} interval: {{ default "120s" $interval }} path: {{ default "/metrics" $path | quote }} {{- include "harnesscommon.tplvalues.render" ( dict "value" ((($.Values).monitoring).PodMetricsEndpointsConfig) "context" $ ) | nindent 6 }}