Connect a public IP address to the load balancer
Connect a public IP address to the load balancer
A static public IP address can be connected when creating a balancer or in an already created balancer.
Control panel
OpenStack CLI
- Create a public IP address in the pool where the load balancer resides.
- If the load balancer is on a private subnet, connect the subnet to the cloud router. Check that the router is connected to an external network.
- В control panels go to Cloud platform → Balancers → tab Balancers.
- In the balancer card, click Connect a public IP address. Select a public IP address.
-
Look at the balancer port ID — value
vip_port_id
from the output of the command:openstack loadbalancer show <loadbalancer>
Specify
<loadbalancer>
— ID or name of the balancer. The list can be viewed byopenstack loadbalancer list
-
Connect the public IP address to the balancer:
openstack floating ip set --port <loadbalancer_port_id> <floating_ip>
Specify:
<loadbalancer_port_id>
— Balancer Port ID;<floating_ip>
— public IP address.