Skip to main content

dtctl load-balancer create-balancing-pool

Usage​

dtctl load-balancer create-balancing-pool [flags]

Aliases​

cbp

Description​

Create a listener, pool, and health monitor together in one step. This is a convenient way to stand up a complete balancing configuration; you can optionally include members inline.

Example​

# Create an HTTP balancing pool (listener + pool + TCP health check) in one call
dtctl load-balancer create-balancing-pool --lb-id <lb-id> --lb-protocol HTTP --lb-port 80 --backend-protocol HTTP --backend-protocol-port 80 --lb-algorithm ROUND_ROBIN --type TCP --interval 5 --timeout 5 --healthy-threshold 3 --unhealthy-threshold 3 --sticky-session=false

Flags​

OptionDescription
--allowed-cidrs, -gComma-separated list of allowed CIDRs
--backend-protocol, -rBackend protocol (e.g., HTTP, HTTPS, TCP, UDP) (required)
--backend-protocol-port, -bPort number for the backend protocol (required)
--certificate, -fCertificate content for the balancing pool
--connection-limit, -jMaximum number of connections for the balancing pool
--healthy-threshold, -vHealthy threshold number (required)
--insert-headers, -qInsert headers, as comma-separated key=value pairs.
Supported headers:
- X-Forwarded-For
- X-Forwarded-Port
- X-Forwarded-Proto
- X-SSL-Client-CN
- X-SSL-Client-DN
- X-SSL-Client-Has-Cert
- X-SSL-Client-Verify
- X-SSL-Client-Not-After
- X-SSL-Client-Not-Before
- X-SSL-Client-SHA1
- X-SSL-Issuer
Example: "X-Forwarded-For=true,X-Forwarded-Proto=https"
--interval, -eInterval for health checks (required)
--lb-algorithm, -aLoad balancing algorithm (e.g., LEAST_CONNECTIONS, ROUND_ROBIN, SOURCE_IP) (required)
--lb-id, -iID of the load balancer (required)
--lb-port, -lPort number for the load balancer (required)
--lb-protocol, -pLoad balancer protocol (e.g., HTTPS, HTTP, TCP, UDP) (required)
--membersSemicolon separated list of members (e.g., 'address=1.1.1.1,compute_server_id=server-1,protocol_port=80;address=1.1.1.2,compute_server_id=server-2,protocol_port=82')
--path, -uURL path for health checks
--private-key, -kPrivate key for the certificate
--sticky-session, -sEnable sticky session for the balancing pool (required)
--timeout, -tTimeout for health checks (required)
--timeout-client-data, -dTimeout in seconds for client data
--timeout-member-connect, -zTimeout in seconds for connecting to backend members
--timeout-member-data, -mTimeout in seconds for backend member data
--type, -yType of health check (e.g., HTTP, HTTPS, TCP, PING, UDP-CONNECT) (required)
--unhealthy-threshold, -xUnhealthy threshold number (required)
CommandDescription
dtctl load-balancer delete-balancing-poolDelete a balancing pool
dtctl load-balancer balancing-poolShow a balancing pool
dtctl load-balancer balancing-poolsList balancing pools

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