Skip to main content

Connect a public floating IP address to a load balancer

To provide a load balancer in a private subnet with access to and from the internet, you can connect a public floating IP address to it. You can also recreate the load balancer in a public subnet.

If you are using a load balancer for a Managed Kubernetes cluster, the load balancer is created in the same network as the cluster nodes by default, and a public floating IP address is assigned to it. To create a load balancer without a public IP address or with an IP address from other subnets, follow the Configure a load balancer in a Managed Kubernetes cluster for Ingress or Create and configure a load balancer in a Managed Kubernetes cluster for Envoy Gateway instructions. For the load balancer to work correctly in the cluster, all operations with the load balancer must be performed via kubectl.

Connect a public floating IP address to a load balancer

A public floating IP address can be connected when creating a load balancer or to an already created load balancer.

  1. Make sure the load balancer is in a subnet that meets the requirements; for details, see the Prepare a private subnet to connect a public floating IP address instruction Public floating IP addresses. You can view load balancer subnets in the control panel: in the top menu, click ProductsCloud ServersLoad BalancersLoad Balancers tab → load balancer page → Settings block → Network.
  2. In the Control panel, from the top menu, click Products and select Cloud Servers.
  3. Go to the Load Balancers section → Load Balancers.
  4. On the load balancer card, click Connect public IP.
  5. Select a public floating IP address.
  6. Click Connect.

Disconnect a public floating IP address from a load balancer

  1. In the Control panel, from the top menu, click Products and select Cloud Servers.
  2. Go to the Load Balancers section → Load Balancers.
  3. On the load balancer card, next to the public IP address, click .
  4. Select Disconnect public IP address.
  5. Click Save.