feat(longhorn-UI): Allow specifying loadBalancer IP/SourceRanges

Signed-off-by: Maciej Lasyk <maciej@lasyk.info>
This commit is contained in:
Maciej Lasyk 2022-01-03 14:05:28 +01:00 committed by David Ko
parent 408d6fc26b
commit be119b4a84
2 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,12 @@ spec:
{{- else }}
type: {{ .Values.service.ui.type }}
{{- end }}
{{- if and .Values.service.ui.loadBalancerIP (eq .Values.service.ui.type "LoadBalancer") }}
loadBalancerIP: {{ .Values.service.ui.loadBalancerIP }}
{{- end }}
{{- if and (eq .Values.service.ui.type "LoadBalancer") .Values.service.ui.loadBalancerSourceRanges }}
loadBalancerSourceRanges: {{- toYaml .Values.service.ui.loadBalancerSourceRanges | nindent 4 }}
{{- end }}
selector:
app: longhorn-ui
ports:

View File

@ -50,6 +50,8 @@ service:
manager:
type: ClusterIP
nodePort: ""
loadBalancerIP: ""
loadBalancerSourceRanges: ""
persistence:
defaultClass: true