From 806f2a61b8aa824459c7fb6cd39b1bb1c8b283c1 Mon Sep 17 00:00:00 2001 From: derrabauke <pfralf@googlemail.com> Date: Sun, 14 Mar 2021 18:54:39 +0100 Subject: [PATCH] Configure Health check port via values definition --- app/server/chart/backend/templates/deployment.yaml | 2 +- app/server/chart/backend/values.yaml | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/server/chart/backend/templates/deployment.yaml b/app/server/chart/backend/templates/deployment.yaml index 179f0bb..7bede01 100644 --- a/app/server/chart/backend/templates/deployment.yaml +++ b/app/server/chart/backend/templates/deployment.yaml @@ -35,7 +35,7 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http - containerPort: 80 + containerPort: {{ .Values.service.port }} protocol: TCP livenessProbe: httpGet: diff --git a/app/server/chart/backend/values.yaml b/app/server/chart/backend/values.yaml index b000fdf..6f5ff4a 100644 --- a/app/server/chart/backend/values.yaml +++ b/app/server/chart/backend/values.yaml @@ -5,7 +5,7 @@ image: repository: backend #! change to container registry if possible pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "v0.0.1" + tag: "v0.0.2" imagePullSecrets: [] nameOverride: "" @@ -35,7 +35,7 @@ securityContext: {} service: type: ClusterIP - port: 8080 + port: 3002 ingress: enabled: false @@ -51,10 +51,6 @@ ingress: # - chart-example.local resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. # limits: # cpu: 100m # memory: 128Mi @@ -83,7 +79,7 @@ mongodb: repository: 'bitnami/mongodb' tag: '10.10.2' service: - port: 3002 + port: 27017 # auth: # rootPassword: mongodb # persistence: -- GitLab