From b55f32e7f4a1bcb6d37ef9500c1e47e3cbb2afb3 Mon Sep 17 00:00:00 2001 From: denismaggior8 Date: Wed, 15 Nov 2023 16:37:32 +0100 Subject: [PATCH] fixes #12 --- charts/hello-world/templates/deployment.yaml | 2 +- charts/hello-world/templates/service.yaml | 2 +- charts/hello-world/values.yaml | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/hello-world/templates/deployment.yaml b/charts/hello-world/templates/deployment.yaml index bf9e042..df7755e 100644 --- a/charts/hello-world/templates/deployment.yaml +++ b/charts/hello-world/templates/deployment.yaml @@ -21,7 +21,7 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http - containerPort: 80 + containerPort: {{ .Values.deployment.containerPort }} protocol: TCP livenessProbe: httpGet: diff --git a/charts/hello-world/templates/service.yaml b/charts/hello-world/templates/service.yaml index e6da84e..beb2f6c 100644 --- a/charts/hello-world/templates/service.yaml +++ b/charts/hello-world/templates/service.yaml @@ -8,7 +8,7 @@ spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} - targetPort: http + targetPort: {{ .Values.service.targetPort }} protocol: TCP name: http selector: diff --git a/charts/hello-world/values.yaml b/charts/hello-world/values.yaml index a85d5a9..fdfbbdb 100644 --- a/charts/hello-world/values.yaml +++ b/charts/hello-world/values.yaml @@ -25,3 +25,7 @@ serviceAccount: service: type: ClusterIP port: 80 + targetPort: 8081 + +deployment: + containerPort: 8081 \ No newline at end of file