Managing your networks and subnets
Creating a new Load Balancer
- CLI
- UI
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
To create a load balancer via the console:
- From the console, select Networking > Load Balancers in the left nav.
- Click Create Load Balancer.
- Input a name, location, VPC network, listen port(s), and other required fields for the load balancer.
- Click Create Load Balancer.
Viewing all Load Balancers
- CLI
- UI
Use the networking load-balancers list command to list existing load balancers.
crusoe networking load-balancers list
To view load balancers via the console, select Networking > Load Balancers in the left nav.
Update an existing Load Balancer
- CLI
- UI
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
To update an existing load balancer via the console:
- From the console, select Networking > Load Balancers in the left nav.
- Select the load balancer you want to edit.
- Use the Edit Health Checks field to modify health parameters, or modify destinations via the Destinations table.
Deleting a Load Balancer
- CLI
- UI
Load Balancers can be deleted in the CLI using the networking load-balancers delete <id> command.
To delete a load balancer via the console:
- From the console, select Networking > Load Balancers in the left nav.
- Click on the load balancer you want to delete.
- Select Delete and type in the resource name as confirmation.
If you are having issues working with your load balancers, please contact support.