vinfra service compute load-balancer create

Create a load balancer:

usage: vinfra service compute load-balancer create [--description <description>]
                                                   [--enable | --disable]
                                                   [--address <address>]
                                                   [--floating-ip <floating-ip>]
                                                   [--pools-config <pools>]
                                                   <name> <network>
--description <description>
Load balancer description
--enable
Enable the load balancer.
--disable
Disable the load balancer.
--address <address>
The IP address the load balancer will try to allocate in the network.
--floating-ip <floating-ip>
The floating IP address that will be used to connect to the load balancer from public networks.
--pools-config <pools>
Pool configuration file

Below is an example of a pool configuration file in the YAML format:

- backend_protocol: HTTPS
  backend_protocol_port: 443
  healthmonitor: {delay: 5, max_retries: 3, max_retries_down: 3, timeout: 5,
    type: PING, url_path: /}
  lb_algorithm: ROUND_ROBIN
  members:
  - address: 192.168.30.49
  - address: 192.168.30.15
  name: pool1
  protocol: HTTPS
  protocol_port: 443
  sticky_session: False	
<name>
Load balancer name
<network>
The ID or name of network the load balancer will operate in.

Example:

# vinfra service compute load-balancer create mylbaas private1 \
--floating-ip 10.94.129.70 +---------------+--------------------------------------+ | Field | Value | +---------------+--------------------------------------+ | address | 192.168.30.230 | | amphorae | | | created_at | 2019-11-18T12:59:08.243413 | | description | | | enabled | True | | floating_ip | 10.94.129.70 | | ha_enabled | | | id | 941bf637-2d55-40f0-92c0-e65d6567b468 | | members_count | 0 | | name | mylbaas | | network_id | 2b821d00-e428-4a76-b1ae-d181c9f5ae7f | | pools | [] | | port_id | 2d8ab88a-847c-4396-857e-11eaa80e1b24 | | project_id | e4e059c67dee4736851df14d4519a5a5 | | status | CREATING | | updated_at | | +---------------+--------------------------------------+

This command creates a load balancer mylbaas without balancing pools that will operate in the network private with the floating IP address 10.94.129.70.