From cf7abeaa9403cac1edb5b0995b51891ef7307bbe Mon Sep 17 00:00:00 2001 From: yuta <35091804+vampire-yuta@users.noreply.github.com> Date: Wed, 5 Oct 2022 04:26:09 +0900 Subject: [PATCH] chore(helm): add loadBalancerIP param (#5704) --- dev/helm/templates/service.yaml | 3 +++ dev/helm/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/dev/helm/templates/service.yaml b/dev/helm/templates/service.yaml index 5b27cb7e..62bcff25 100644 --- a/dev/helm/templates/service.yaml +++ b/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 diff --git a/dev/helm/values.yaml b/dev/helm/values.yaml index 1a450d6e..a61d53e0 100644 --- a/dev/helm/values.yaml +++ b/dev/helm/values.yaml @@ -61,6 +61,7 @@ service: # type: LoadBalancer # httpsPort: 443 # annotations: {} + # loadBalancerIP: 172.16.0.1 ingress: enabled: true