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
In order to create a load balancer via the Crusoe Cloud console:
- Visit the Crusoe Cloud console
- Click the "Networking" tab in the left nav
- Click the "Load Balancers" tab underneath the "Networking" title
- Click the "Create Load Balancer" button
- Input a name, location, VPC network and Listen Port(s) for the load balancer
- Click "Create"
Viewing all Load Balancers
- CLI
- UI
Use the networking load-balancers list
command to list existing load balancers.
crusoe networking load-balancers list
In order to view load balancers via the Crusoe Cloud console:
- Visit the Crusoe Cloud console
- Click the "Networking" tab in the left nav
- Click the "Load Balancers" tab underneath the "Networking" title
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:
- Visit the Crusoe Cloud console
- Click the "Networking" tab in the left nav
- Click the "Load Balancers" tab underneath the "Networking" title
- Select the Load Balancer you wish 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.
In order to delete a Load Balancer via the Crusoe Cloud console:
- Visit the Crusoe Cloud console
- Click the "Networking" tab in the left nav
- Click the "Load Balancers" tab underneath the "Networking" title
- Click on the load balancer you wish to delete
- Select the "Delete" button and type in the resource name as confirmation
If you are having issues working with your load balancers, please contact support.