Added targetPort to set container port number instead of using the service port.

Signed-off-by: Ritwik G <ritwikgopi@gmail.com>
pull/13196/head
RITWIK G 1 year ago committed by GitHub
parent cd71a359bf
commit da385f94e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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:
@ -720,4 +721,4 @@ func validateChartName(name string) error {
return fmt.Errorf("chart name must match the regular expression %q", chartName.String())
}
return nil
}
}
Loading…
Cancel
Save