You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by yz...@apache.org on 2026/05/12 04:08:50 UTC
(polaris-tools) branch main updated: Make target port configurable for console (#224)
This is an automated email from the ASF dual-hosted git repository.
MonkeyCanCode pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 1a452e7 Make target port configurable for console (#224)
1a452e7 is described below
commit 1a452e73a8deae491a8da6be5da608e2df35e0ef
Author: Yong Zheng <yo...@gmail.com>
AuthorDate: Mon May 11 23:08:45 2026 -0500
Make target port configurable for console (#224)
---
console/helm/templates/deployment.yaml | 6 +++---
console/helm/templates/ingress.yaml | 2 +-
console/helm/templates/service.yaml | 2 +-
console/helm/values.yaml | 1 +
4 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/console/helm/templates/deployment.yaml b/console/helm/templates/deployment.yaml
index 138b560..0626cce 100644
--- a/console/helm/templates/deployment.yaml
+++ b/console/helm/templates/deployment.yaml
@@ -42,7 +42,7 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- - containerPort: 80
+ - port: {{ .Values.service.targetPort | default 80 }}
env:
- name: VITE_POLARIS_API_URL
value: {{ .Values.env.polarisApiUrl | quote }}
@@ -55,14 +55,14 @@ spec:
readinessProbe:
httpGet:
path: /health
- port: 80
+ port: {{ .Values.service.targetPort | default 80 }}
initialDelaySeconds: 5
periodSeconds: 5
failureThreshold: 3
livenessProbe:
httpGet:
path: /health
- port: 80
+ port: {{ .Values.service.targetPort | default 80 }}
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 5
diff --git a/console/helm/templates/ingress.yaml b/console/helm/templates/ingress.yaml
index fc08c0c..fa3362d 100644
--- a/console/helm/templates/ingress.yaml
+++ b/console/helm/templates/ingress.yaml
@@ -56,7 +56,7 @@ spec:
service:
name: {{ $fullName }}
port:
- number: {{ .Values.service.port }}
+ number: {{ $.Values.service.port }}
{{- end }}
{{- end }}
diff --git a/console/helm/templates/service.yaml b/console/helm/templates/service.yaml
index 7a04e4f..bd3a6af 100644
--- a/console/helm/templates/service.yaml
+++ b/console/helm/templates/service.yaml
@@ -27,7 +27,7 @@ spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
- targetPort: 80
+ targetPort: {{ .Values.service.targetPort | default 80 }}
protocol: TCP
selector:
app: {{ include "polaris-console.fullname" . }}
diff --git a/console/helm/values.yaml b/console/helm/values.yaml
index 7d26858..dc79e1d 100644
--- a/console/helm/values.yaml
+++ b/console/helm/values.yaml
@@ -28,6 +28,7 @@ replicaCount: 1
service:
type: ClusterIP
port: 80
+ targetPort: 80
env:
polarisApiUrl: "http://polaris:8181"