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
| Option | Description |
|---|---|
--algorithm, -a | Load balancing algorithm. One of: ROUND_ROBIN, LEAST_CONNECTIONS, SOURCE_IP (required) |
--backend-protocol, -r | Backend protocol. One of: HTTP, HTTPS, TCP, UDP (required) |
--backend-protocol-port, -p | Backend port members listen on (1-65535) (required) |
--lb-id, -i | ID of the load balancer (required) |
--listener-id, -l | ID of the listener to attach the pool to (required) |
Related Commands
| Command | Description |
|---|---|
| dtctl load-balancer update-pool | Update a pool |
| dtctl load-balancer delete-pool | Delete a pool |
| dtctl load-balancer pool-details | Show a pool |
| dtctl load-balancer pools | List pools of 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 |