From 1f35575a2a12be55514a6a0ea39e21a3654eee6f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 23 Jan 2024 08:59:44 -0500 Subject: [PATCH] fix: use the container port as the target to fix an issue where kubernetes will remove duplicate containerPort entries with different names --- plugins/scheduler-k3s/templates/chart/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/scheduler-k3s/templates/chart/service.yaml b/plugins/scheduler-k3s/templates/chart/service.yaml index a3ed18c83..4d9f33bf3 100644 --- a/plugins/scheduler-k3s/templates/chart/service.yaml +++ b/plugins/scheduler-k3s/templates/chart/service.yaml @@ -18,7 +18,7 @@ spec: - name: {{ $port_map.name }} port: {{ $port_map.host_port }} protocol: TCP - targetPort: {{ $port_map.name }} + targetPort: {{ $port_map.container_port }} {{- end }} selector: app.kubernetes.io/instance: {{ $.Values.global.app_name }}-{{ $processName }}