Skip to content

The Unified and Autonomous Development Platform

fix: set value of port for service.ports.httpPort

Khaliq31e509b0035a
diff --git a/server-product/helm/templates/ingress.yaml b/server-product/helm/templates/ingress.yaml
index 0ccec1334a..e2d2b31aca 100644
--- a/server-product/helm/templates/ingress.yaml
+++ b/server-product/helm/templates/ingress.yaml
@@ -47,10 +47,10 @@ spec:
{{- if .Values.ingress.port.name }}
name: {{ .Values.ingress.port.name }}
{{- else }}
- number: {{ .Values.ingress.port.number }}
+ number: {{ default "6610" .Values.service.ports.httpPort }}
{{- end }}
{{- else }}
serviceName: {{ include "ods.fullname" $ }}
- servicePort: {{ .Values.ingress.port.number }}
+ servicePort: {{ default "6610" .Values.service.ports.httpPort }}
{{- end }}
{{- end }}