Connect a public IP address to a load balancer
If you are using a load balancer to work with a Managed Kubernetes cluster, the load balancer is created in the same network as the cluster nodes by default, and a public IP address is assigned to it. To create a load balancer without a public IP address or with an IP address from other subnets, use the Configure a load balancer guide in the Managed Kubernetes section. For the load balancer to work correctly in the cluster, all operations with the load balancer must be performed via kubectl.
Connect a public IP address to a load balancer
A static public IP address can be connected when creating a load balancer or to an already created load balancer.
Control panel
OpenStack CLI
- Make sure that the load balancer is on a subnet that meets the requirements; for more details, see the Preparing a private subnet for connecting a public IP address section of the Public IP addresses guide. You can view load balancer subnets in the Control panel: in the top menu, click Products → Cloud Servers → Load Balancers → Load Balancers tab → load balancer page → Settings block → Network field.
- In the Control panel, on the top menu, click Products and select Cloud Servers.
- Go to the Load Balancers section → Load Balancers tab.
- In the load balancer card, click Attach public IP.
- Select a public IP address.
- Click Attach.
Disconnect a public IP address from a load balancer
Control panel
OpenStack CLI
- In the Control panel, on the top menu, click Products and select Cloud Servers.
- Go to the Load Balancers section → Load Balancers tab.
- In the load balancer card, next to the public IP address, click .
- Select Disconnect public IP address.
- Click Save.