Skip to content

Commit

Permalink
Add allowedCidrs for loadbalancer ip whitelisting (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
heytrav authored Oct 18, 2023
1 parent 87df524 commit 36b5f73
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions charts/openstack-cluster/templates/cluster-openstack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ spec:
enabled: true
{{- if .loadBalancerProvider }}
provider: {{ .loadBalancerProvider }}
{{- if .allowedCidrs }}
allowedCidrs:
{{- range .allowedCidrs }}
- {{ . }}
{{- end}}
{{- end }}
{{- end }}
{{- end }}

Expand Down
6 changes: 5 additions & 1 deletion charts/openstack-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36b5f73

Please sign in to comment.