소스 검색

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

yuta 2 년 전
부모
커밋
cf7abeaa94
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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