Skip to main content

dtctl load-balancer create-pool

Usage​

dtctl load-balancer create-pool [flags]

Aliases​

cp

Description​

Add a backend pool to a load balancer and attach it to a listener. A pool groups the backend members that traffic is balanced across.

Example​

# Create an HTTP pool bound to a listener
dtctl load-balancer create-pool --lb-id <lb-id> --listener-id <listener-id> --backend-protocol HTTP --backend-protocol-port 80 --algorithm ROUND_ROBIN

Flags​

OptionDescription
--algorithm, -aLoad balancing algorithm. One of: ROUND_ROBIN, LEAST_CONNECTIONS, SOURCE_IP (required)
--backend-protocol, -rBackend protocol. One of: HTTP, HTTPS, TCP, UDP (required)
--backend-protocol-port, -pBackend port members listen on (1-65535) (required)
--lb-id, -iID of the load balancer (required)
--listener-id, -lID of the listener to attach the pool to (required)
CommandDescription
dtctl load-balancer update-poolUpdate a pool
dtctl load-balancer delete-poolDelete a pool
dtctl load-balancer pool-detailsShow a pool
dtctl load-balancer poolsList pools of 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