From 85a842f60142ea3af4a2c68766b42c1e1c5ab55d Mon Sep 17 00:00:00 2001 From: Rainer 'rei' Schuth Date: Thu, 22 Oct 2020 12:07:30 +0200 Subject: [PATCH 1/2] Improve Monochart Service port mapping --- incubator/monochart/templates/service.yaml | 2 +- incubator/monochart/values.yaml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/incubator/monochart/templates/service.yaml b/incubator/monochart/templates/service.yaml index 5650d804..e78cc004 100644 --- a/incubator/monochart/templates/service.yaml +++ b/incubator/monochart/templates/service.yaml @@ -20,7 +20,7 @@ spec: ports: {{- range $name, $port := .Values.service.ports }} {{- if $port }} - - targetPort: {{ $name }} + - targetPort: {{ $port.internal }} port: {{ $port.external }} protocol: {{ default "TCP" $port.protocol }} name: {{ $name }} diff --git a/incubator/monochart/values.yaml b/incubator/monochart/values.yaml index 9505af04..7d677457 100644 --- a/incubator/monochart/values.yaml +++ b/incubator/monochart/values.yaml @@ -214,9 +214,10 @@ service: enabled: false type: ClusterIP ports: - default: - internal: 8080 - external: 80 + http: #Name of the Port for Multi-Port Services + internal: 8080 #This is the targetPort for the application/deployment/etc. + external: 80 #This is the incoming port + protocol: TCP # labels: # name: value # annotations: From 1a416b450f02803df0a94f92f276f617cdb8f2ef Mon Sep 17 00:00:00 2001 From: Rainer 'rei' Schuth Date: Thu, 22 Oct 2020 14:55:08 +0200 Subject: [PATCH 2/2] Use default name --- incubator/monochart/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/incubator/monochart/values.yaml b/incubator/monochart/values.yaml index 7d677457..63d2978b 100644 --- a/incubator/monochart/values.yaml +++ b/incubator/monochart/values.yaml @@ -214,7 +214,7 @@ service: enabled: false type: ClusterIP ports: - http: #Name of the Port for Multi-Port Services + default: #Name of the Port for Multi-Port Services internal: 8080 #This is the targetPort for the application/deployment/etc. external: 80 #This is the incoming port protocol: TCP