Skip to content

The Unified and Autonomous Development Platform

fix(chart): service type should default to "LoadBalancer" when `ingress.host` is no set

Nex Zhufb7e0ca9cdd0
diff --git a/server-product/helm/templates/service.yaml b/server-product/helm/templates/service.yaml
index 89814f4f0f..29359c5cb2 100644
--- a/server-product/helm/templates/service.yaml
+++ b/server-product/helm/templates/service.yaml
@@ -9,7 +9,7 @@ metadata:
annotations:
{{- toYaml $http.annotations | nindent 4 }}
spec:
- {{ $type := $http.type | default (ternary "ClusterIP" "LoadBalancer" (not .Values.ingress.host)) }}
+ {{ $type := $http.type | default (ternary "LoadBalancer" "ClusterIP" (not .Values.ingress.host)) }}
type: {{ $type }}
{{- if eq $type "LoadBalancer" }}
{{- if $http.loadBalancerIP }}
@@ -56,7 +56,7 @@ metadata:
annotations:
{{- toYaml $ssh.annotations | nindent 4 }}
spec:
- {{ $type := $ssh.type | default (ternary "ClusterIP" "LoadBalancer" (not .Values.ingress.host)) }}
+ {{ $type := $ssh.type | default (ternary "LoadBalancer" "ClusterIP" (not .Values.ingress.host)) }}
type: {{ $type }}
{{- if eq $type "LoadBalancer" }}
{{ if $ssh.loadBalancerIP }}