fix: use the container port as the target to fix an issue where kubernetes will remove duplicate containerPort entries with different names

This commit is contained in:
Jose Diaz-Gonzalez
2024-01-23 08:59:44 -05:00
parent d8fcabdf40
commit 1f35575a2a

View File

@@ -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 }}