diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index 50212f9d5..0e394f7bf 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -146,6 +146,7 @@ securityContext: {} service: type: ClusterIP port: 80 + targetPort: 80 ingress: enabled: false @@ -339,7 +340,7 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http - containerPort: {{ .Values.service.port }} + containerPort: {{ .Values.service.targetPort }} protocol: TCP livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} @@ -379,7 +380,7 @@ spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} - targetPort: http + targetPort: {{ .Values.service.targetPort }} protocol: TCP name: http selector: