Load balancer CLI reference¶
See https://docs.openstack.org/ocata/cli-reference/neutron.html
These commands allow you to create, list, show details of, and delete load balancers, listeners, pools, and health monitors in the Load Balancer service. The <loadbalancer_id>
, <listener_id>
, <pool_id>
, and <healthmonitor_id>
in the commands are placeholders that should be replaced with the actual IDs of the respective resources.
List load balancers¶
Show load balancer details¶
Create a load balancer¶
Delete a load balancer¶
List listeners¶
Show listener details¶
Create a listener¶
Bash
openstack loadbalancer listener create --name <listener_name> --protocol <protocol> --protocol-port <port> <loadbalancer_id>
Delete a listener¶
List pools¶
Show pool details¶
Create a pool¶
Bash
openstack loadbalancer pool create --name <pool_name> --lb-algorithm <algorithm> --listener <listener_id> --protocol <protocol>
Delete a pool¶
List Health monitors¶
Show health monitor details¶
Create a health monitor¶
Bash
openstack loadbalancer healthmonitor create --name <healthmonitor_name> --delay <delay> --max-retries <retries> --timeout <timeout> --type <type> <pool_id>