Skip to main content

Connect a public IP address to the load balancer

If you use a load balancer to work with a Managed Kubernetes cluster, by default the load balancer is created on the same network as the cluster nodes and is assigned a public IP address. To create a load balancer without a public IP address or with an IP address from other subnets, use the Configure a load balancer instructions in the Managed Kubernetes section. For the load balancer to work correctly in a cluster, all actions with the load balancer must be performed via kubectl.

Connect a public IP address to the load balancer

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

  1. Make sure the load balancer is on a subnet that meets the requirements. To prepare the subnet, use the instructions Prepare a private subnet to connect a public IP address. You can view the subnets of the load balancer in the Control Panel: in the top menu, click ProductsCloud ServersBalancersBalancers tab → Balancers page → Balancer page → Settings block → Network field.
  2. In the Dashboard, on the top menu, click Products and select Cloud Servers.
  3. Go to BalancersBalancers tab.
  4. In the balancer card, click Connect Public IP.
  5. Select a public IP address.
  6. Click Connect.

Disconnect the public IP address from the load balancer

  1. In the dashboard, on the top menu, click Products and select Cloud Servers.
  2. Go to BalancersBalancers tab.
  3. In the balancer card of the public IP address, click .
  4. Select Disable public IP address.
  5. Click Save.