Skip to content

Commit 3bba156

Browse files
nbouronHaarolean
andcommitted
Helm: Add loadBalancerIP attribute for LB svc (#3795)
Signed-off-by: Nicolas BOURON <nicolas.bouron@gmail.com> Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com> (cherry picked from commit c998e17e8322a867c02ef4cdf577aa33c2d3a81e)
1 parent 8b0dbb7 commit 3bba156

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

charts/kafka-ui/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ apiVersion: v2
22
name: kafka-ui
33
description: A Helm chart for kafka-UI
44
type: application
5-
version: 0.7.0
5+
version: 0.7.1
66
appVersion: v0.7.0
77
icon: https://github.com/provectus/kafka-ui/raw/master/documentation/images/kafka-ui-logo.png

charts/kafka-ui/templates/service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ metadata:
1010
{{- end }}
1111
spec:
1212
type: {{ .Values.service.type }}
13+
{{- if and (eq .Values.service.type "LoadBalancer") (.Values.service.loadBalancerIP) }}
14+
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
15+
{{- end }}
1316
ports:
1417
- port: {{ .Values.service.port }}
1518
targetPort: http

charts/kafka-ui/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ securityContext:
9494
service:
9595
type: ClusterIP
9696
port: 80
97+
# In case of service type LoadBalancer, you can specify reserved static IP
98+
# loadBalancerIP: 10.11.12.13
9799
# if you want to force a specific nodePort. Must be use with service.type=NodePort
98100
# nodePort:
99101

0 commit comments

Comments
 (0)