Add allowedCidrs for loadbalancer ip whitelisting (#141)

This commit is contained in:
William Travis Holton 2023-10-18 22:14:35 +13:00 committed by GitHub
parent 87df524244
commit 36b5f731d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -45,6 +45,12 @@ spec:
enabled: true
{{- if .loadBalancerProvider }}
provider: {{ .loadBalancerProvider }}
{{- if .allowedCidrs }}
allowedCidrs:
{{- range .allowedCidrs }}
- {{ . }}
{{- end}}
{{- end }}
{{- end }}
{{- end }}

View File

@ -101,7 +101,11 @@ apiServer:
enableLoadBalancer: true
# Indicates what loadbalancer provider to use. Default is amphora
loadBalancerProvider:
# Restrict loadbalancer access to select IPs
# allowedCidrs
# - 192.168.0.0/16 # needed for cluster to init
# - 10.10.0.0/16 # IPv4 Internal Network
# - 123.123.123.123 # some other IPs
# Indicates whether to associate a floating IP with the API server
associateFloatingIP: true
# The specific floating IP to associate with the API server