Skip to main content

Managing your networks and subnets

Creating a new Load Balancer

Use the networking load-balancers create command to create a new load balancer.

crusoe networking load-balancers create \
--name my-new-lb \
--location us-east1-a \
--vpc-network-id <uuid-of-vpc-network> \
--protocol tcp \
--listener 80,172.1.1.1:80,172.1.1.2:80

Viewing all Load Balancers

Use the networking load-balancers list command to list existing load balancers.


crusoe networking load-balancers list

Update an existing Load Balancer

Load balancers may be updated by using the networking load-balancers update <id> command. Note that the list of backends associated with each listen port is declarative. You will have to specify the complete list of backends when updating your load balancer.

crusoe networking load-balancers update <id> \
--listener 80,172.1.1.1:80,172.1.1.2:80,127.0.0.1:80 \
--listener 443,172.1.1.1:443,172.1.1.2:443,127.0.0.1:443
--health-check 10,5,5,1

Deleting a Load Balancer

Load Balancers can be deleted in the CLI using the networking load-balancers delete <id> command.

If you are having issues working with your load balancers, please contact support.