dtctl load-balancer create
Usage
dtctl load-balancer create [flags]
Aliases
c
Description
Create a load balancer. Choose a flavor (see dtctl flavor list-lb) and a network type, and place the Virtual IP (VIP) by giving exactly one of --vip-network-id, --vip-subnet-id, or --vip-port-id. Optionally assign an elastic IP for public access.
Example
# Create a virtual load balancer with its VIP on a network
dtctl load-balancer create --name web-lb --flavor-id <lb-flavor-id> --network-type Virtual --vip-network-id <network-id>
Flags
| Option | Description |
|---|---|
--description, -d | Description of the load balancer |
--elastic-ip, -e | Elastic IP to assign to the load balancer. To create new and assign directly, pass it as 'NEW' |
--external-network-id, -x | ID of the external network for the load balancer |
--flavor-id, -f | Flavor ID specifying the size and capacity of the load balancer (required) |
--name, -n | Name of the load balancer (required) |
--network-type, -t | Network type. One of: Virtual, Physical (required) |
--vip-address, -a | VIP address to assign to the load balancer (e.g., '192.168.0.1') |
--vip-network-id, -w | The ID of the network for the Virtual IP (VIP). Exactly one of vip-network-id, vip-port-id, or vip-subnet-id must be specified. |
--vip-port-id, -p | The ID of the port for the Virtual IP (VIP). Exactly one of vip-network-id, vip-port-id, or vip-subnet-id must be specified. |
--vip-subnet-id, -s | The ID of the subnet for the Virtual IP (VIP). Exactly one of vip-network-id, vip-port-id, or vip-subnet-id must be specified. |
Related Commands
| Command | Description |
|---|---|
| dtctl load-balancer list | List load balancers |
| dtctl load-balancer show | Show a load balancer |
| dtctl load-balancer update | Update a load balancer |
| dtctl load-balancer delete | Delete a load balancer |
Global Flags
| Option | Description |
|---|---|
--api-url | Send this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1") |
--config, -c | Specify a custom config file Default: ~/.config/dtctl/config.yaml |
--no-headers | Omit the column headers, for scripting Default: false |
--output, -o | Output format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line Default: text |