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 4f19c5a7..f7a96881 100644 --- a/incubator/monochart/values.yaml +++ b/incubator/monochart/values.yaml @@ -214,9 +214,9 @@ service: enabled: false type: ClusterIP # ports: - # name: - # internal: 80 - # external: 80 + # name: #Name of the Port for Multi-Port Services + # internal: 80 #This is the targetPort for the application/deployment/etc. + # external: 80 #This is the incoming port # labels: # name: value # annotations: