Skip to main content

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.

  1. 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 ProductsCloud ServersLoad BalancersLoad Balancers tab → load balancer page → Settings block → Network field.
  2. In the Control panel, on the top menu, click Products and select Cloud Servers.
  3. Go to the Load Balancers section → Load Balancers tab.
  4. In the load balancer card, click Attach public IP.
  5. Select a public IP address.
  6. Click Attach.

Disconnect a public IP address from a load balancer

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