Load Balancer
Load Balancers distribute incoming network traffic across multiple resources to ensure high availability and reliability.
Note: Load Balancers are currently read-only via the CLI. You can list and view details, but cannot create, update, or delete them through the CLI.
Commands
List Load Balancers
List all Load Balancers in your project.
acloud network loadbalancer list [flags]
Flags:
--project-id string- Project ID (uses context if not specified)
Example:
# List Load Balancers using context
acloud network loadbalancer list
# List with explicit project ID
acloud network loadbalancer list --project-id 68398923fb2cb026400d4d31
Output:
NAME ID ADDRESS STATUS
ingress-nginx-controller 68ffa1797912602cb16794dc 209.227.232.229 Active
api-gateway-lb 69485b8a4d0cdc87949b7012 95.110.142.230 Active
Get Load Balancer Details
Get detailed information about a specific Load Balancer.
acloud network loadbalancer get <load-balancer-id> [flags]
Arguments:
load-balancer-id- The ID of the Load Balancer (supports auto-completion)
Flags:
--project-id string- Project ID (uses context if not specified)
Example:
acloud network loadbalancer get 68ffa1797912602cb16794dc
Output:
Load Balancer Details:
======================
ID: 68ffa1797912602cb16794dc
URI: /projects/.../loadBalancers/68ffa1797912602cb16794dc
Name: ingress-nginx-controller
Address: 209.227.232.229
Linked Resources: 2
VPC: 689307f4745108d3c6343b5a
Creation Date: 27-10-2025 16:44:41
Created By: aru-297647
Tags: [kubernetes ingress production]
Status: Active
Shell Auto-completion
The Load Balancer commands support intelligent auto-completion for Load Balancer IDs:
# Enable completion (bash)
source <(acloud completion bash)
# Type command and press TAB to see available Load Balancer IDs
acloud network loadbalancer get <TAB>
Auto-completion shows Load Balancer IDs with their names:
68ffa1797912602cb16794dc ingress-nginx-controller
69485b8a4d0cdc87949b7012 api-gateway-lb
Load Balancer States
Load Balancers can be in the following states:
| State | Description |
|---|---|
| InCreation | Load Balancer is being created |
| Active | Load Balancer is ready and distributing traffic |
| Updating | Load Balancer configuration is being updated |
| Deleting | Load Balancer is being deleted |
Load Balancer Properties
Address
The public IP address of the Load Balancer:
- Assigned automatically
- Used to route incoming traffic
- Typically an Elastic IP
VPC Association
Load Balancers are associated with a VPC:
- Shown as VPC ID in the details
- Determines network isolation
- Affects routing and security rules
Linked Resources
Load Balancers distribute traffic to linked resources:
- Backend servers
- Target groups
- Health check endpoints
The Linked Resources count shows how many backends are configured.
Tags
Load Balancers support tags for organization:
- Set when the Load Balancer is created
- Visible via the get command
- Cannot be modified via CLI (read-only)
Common Workflows
Viewing Load Balancer Information
# List all Load Balancers
acloud network loadbalancer list
# Get details of a specific Load Balancer
acloud network loadbalancer get <lb-id>
# View Load Balancer with specific tags
acloud network loadbalancer list | grep "production"
Monitoring Load Balancers
# Check status of all Load Balancers
acloud network loadbalancer list
# Get detailed info including linked resources
for lb_id in $(acloud network loadbalancer list | tail -n +2 | awk '{print $2}'); do
echo "=== Load Balancer: $lb_id ==="
acloud network loadbalancer get $lb_id
echo ""
done
Finding Load Balancers by Address
# List all Load Balancers with their addresses
acloud network loadbalancer list
# Filter by specific address
acloud network loadbalancer list | grep "209.227.232.229"
Integration with Other Resources
With Elastic IPs
Load Balancers often use Elastic IPs:
# Get Load Balancer address
LB_IP=$(acloud network loadbalancer get <lb-id> | grep "Address:" | awk '{print $2}')
# Find the corresponding Elastic IP
acloud network elasticip list | grep "$LB_IP"
With VPCs
Load Balancers are associated with VPCs:
# Get Load Balancer VPC
VPC_ID=$(acloud network loadbalancer get <lb-id> | grep "VPC:" | awk '{print $2}')
# Get VPC details
acloud network vpc get $VPC_ID
Best Practices
-
Regular Monitoring
# Check Load Balancer status regularly
acloud network loadbalancer list -
Document Configuration
# Save Load Balancer details for reference
acloud network loadbalancer get <lb-id> > lb-config-backup.txt -
Track Resource Associations
# Note which VPC and resources are associated
acloud network loadbalancer get <lb-id> -
Use with Project Contexts
acloud context use prod-project
acloud network loadbalancer list # No need for --project-id
Limitations
Read-Only Access
Load Balancers are read-only via the CLI: