Skip to main content

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​

OptionDescription
--description, -dDescription of the load balancer
--elastic-ip, -eElastic IP to assign to the load balancer. To create new and assign directly, pass it as 'NEW'
--external-network-id, -xID of the external network for the load balancer
--flavor-id, -fFlavor ID specifying the size and capacity of the load balancer (required)
--name, -nName of the load balancer (required)
--network-type, -tNetwork type. One of: Virtual, Physical (required)
--vip-address, -aVIP address to assign to the load balancer (e.g., '192.168.0.1')
--vip-network-id, -wThe 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, -pThe 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, -sThe 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.
CommandDescription
dtctl load-balancer listList load balancers
dtctl load-balancer showShow a load balancer
dtctl load-balancer updateUpdate a load balancer
dtctl load-balancer deleteDelete a load balancer

Global Flags​

OptionDescription
--api-urlSend this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1")
--config, -cSpecify a custom config file
Default: ~/.config/dtctl/config.yaml
--no-headersOmit the column headers, for scripting
Default: false
--output, -oOutput format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line
Default: text