vexxhost / magnum-cluster-api

Cluster API driver for OpenStack Magnum
Apache License 2.0
47 stars 22 forks source link

feat: add env var so proxy can work when floating IPs are in use #425

Closed andrewbonney closed 2 months ago

andrewbonney commented 2 months ago

In our environment, the k8s control plane cluster does not have Internet access. As such, even when a workload cluster uses a floating IP we need to make use of the proxy service to ensure the control plane cluster can reach the workload.

This PR adds an environment variable, matching existing patterns, to provide a way for deployments to always proxy access to the workload clusters.

This also adds a check that the load balancer internalIP exists as a cluster without a load balancer would cause the IP in the HAProxy config to be rendered as None