From 07f43bc48a4b4daa267840ab034f8845a65578ba Mon Sep 17 00:00:00 2001 From: Dheeraj Rampally Date: Fri, 20 Oct 2023 10:53:31 -0700 Subject: [PATCH] configuring containerPort from Values in datahub-frontend --- .../subcharts/datahub-frontend/templates/deployment.yaml | 2 +- charts/datahub/subcharts/datahub-frontend/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/datahub/subcharts/datahub-frontend/templates/deployment.yaml b/charts/datahub/subcharts/datahub-frontend/templates/deployment.yaml index 5db08afbb..390d6e5c7 100644 --- a/charts/datahub/subcharts/datahub-frontend/templates/deployment.yaml +++ b/charts/datahub/subcharts/datahub-frontend/templates/deployment.yaml @@ -65,7 +65,7 @@ spec: {{- toYaml .Values.lifecycle | nindent 12 }} ports: - name: http - containerPort: 9002 + containerPort: {{ .Values.service.containerPort }} protocol: TCP {{- if or .Values.global.datahub.monitoring.enablePrometheus .Values.global.datahub.monitoring.enableJMXPort }} - name: jmx diff --git a/charts/datahub/subcharts/datahub-frontend/values.yaml b/charts/datahub/subcharts/datahub-frontend/values.yaml index 520622b12..c0b43b10e 100644 --- a/charts/datahub/subcharts/datahub-frontend/values.yaml +++ b/charts/datahub/subcharts/datahub-frontend/values.yaml @@ -42,6 +42,7 @@ service: type: LoadBalancer # ClusterIP or NodePort port: 9002 targetPort: http + containerPort: 9002 protocol: TCP name: http # Annotations to add to the service, this will help in adding