Skip to content

Commit 5eec473

Browse files
committed
fixes #12
Signed-off-by: denismaggior8 <[email protected]>
1 parent 4888ba8 commit 5eec473

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

charts/hello-world/templates/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
imagePullPolicy: {{ .Values.image.pullPolicy }}
2222
ports:
2323
- name: http
24-
containerPort: 80
24+
containerPort: {{ .Values.deployment.containerPort }}
2525
protocol: TCP
2626
livenessProbe:
2727
httpGet:

charts/hello-world/templates/service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
type: {{ .Values.service.type }}
99
ports:
1010
- port: {{ .Values.service.port }}
11-
targetPort: http
11+
targetPort: {{ .Values.service.targetPort }}
1212
protocol: TCP
1313
name: http
1414
selector:

charts/hello-world/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ serviceAccount:
2525
service:
2626
type: ClusterIP
2727
port: 80
28+
targetPort: 8081
29+
30+
deployment:
31+
containerPort: 8081

0 commit comments

Comments
 (0)