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:
1 parent
d8fcabdf40
commit
1f35575a2a
1 file changed
+1
-1
@@ -18,7 +18,7 @@ spec:
|
|||||||
- name: {{ $port_map.name }}
|
- name: {{ $port_map.name }}
|
||||||
port: {{ $port_map.host_port }}
|
port: {{ $port_map.host_port }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: {{ $port_map.name }}
|
targetPort: {{ $port_map.container_port }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/instance: {{ $.Values.global.app_name }}-{{ $processName }}
|
app.kubernetes.io/instance: {{ $.Values.global.app_name }}-{{ $processName }}
|
||||||
|
|||||||
Reference in new issue
Block a user