Browse Source

chore(helm): add loadBalancerIP param (#5704)

yuta 2 years ago
parent
commit
cf7abeaa94
2 changed files with 4 additions and 0 deletions
  1. 3 0
      dev/helm/templates/service.yaml
  2. 1 0
      dev/helm/values.yaml

+ 3 - 0
dev/helm/templates/service.yaml

@@ -11,6 +11,9 @@ metadata:
   {{- end }}
 spec:
   type: {{.Values.service.type}}
+  {{- if eq .Values.service.type "LoadBalancer" }}
+  loadBalancerIP: {{ default "" .Values.service.loadBalancerIP }}
+  {{- end }}
   ports:
     - port: {{ default "80" .Values.service.port}}
       targetPort: http

+ 1 - 0
dev/helm/values.yaml

@@ -61,6 +61,7 @@ service:
   # type: LoadBalancer
   # httpsPort: 443
   # annotations: {}
+  # loadBalancerIP: 172.16.0.1
 
 ingress:
   enabled: true