Skip to content

tebib lb

Generated from the CLI's own command tree. Run tebib lb --help for the same text in your terminal.

Load balancers: spread TCP or HTTP traffic over healthy VMs.

Commands

tebib lb create

Create a load balancer (public unless --internal).

tebib lb create [OPTIONS] NAME
ArgumentDescription
NAME requiredLoad balancer name, unique in the project.
OptionValueDescription
--internalflagOnly an address in the VPC, no public IP.
--subnetstrSubnet ID (default: the default subnet).
--security-groupstr (repeatable)Its nodes' groups (repeatable; default: the VPC's default).
--public-ipstrUse this allocated public IP (default: allocate one).
--listenstr (repeatable)PROTOCOL:PORT to listen on, e.g. http:80 (repeatable).
--targetstr (repeatable)VM ID to send traffic to (repeatable).
--target-portintThe VMs' port (default: the listen port).
--algorithmstrround_robin, least_connections or source_ip (sticky by client address).
--health-protocolstrtcp or http.
--health-pathstrHTTP check path, e.g. /healthz.
--health-portintCheck this port instead of the traffic port.
--health-matcherstrExpected HTTP codes, e.g. "200-399".
--health-intervalintSeconds between checks (5-300).
--health-timeoutintSeconds a check may take (2-120).
--healthy-thresholdintPasses before a target is healthy.
--unhealthy-thresholdintFailures before it is unhealthy.
--from-filestrThe whole request as JSON (target_groups, listeners...), '-' for stdin.
--descriptionstrDescription.
--tagKEY=VALUE (repeatable)Tag as KEY=VALUE; repeat for more tags.
--project, -pstrProject ID (default: from the profile).
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 600.
--output, -otable | json | yamlOutput format.

tebib lb delete

Delete a load balancer.

tebib lb delete [OPTIONS] ID
ArgumentDescription
ID requiredLoad balancer ID (lb-...).
OptionValueDescription
--yes, -yflagDon't ask for confirmation.
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 600.
--project, -pstrProject ID (default: from the profile).

tebib lb list

List the project's load balancers.

tebib lb list [OPTIONS]
OptionValueDescription
--project, -pstrProject ID (default: from the profile).
--limitint rangeShow at most this many items.
--output, -otable | json | yamlOutput format.

tebib lb set-security-groups

Replace the groups the load balancer's nodes are in.

tebib lb set-security-groups [OPTIONS] LB_ID
ArgumentDescription
LB_ID requiredLoad balancer ID (lb-...).
OptionValueDescription
--security-group requiredstr (repeatable)Group ID (repeatable, 1-5).
--project, -pstrProject ID (default: from the profile).
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 300.
--output, -otable | json | yamlOutput format.

tebib lb show

Show one load balancer.

tebib lb show [OPTIONS] ID
ArgumentDescription
ID requiredLoad balancer ID (lb-...).
OptionValueDescription
--project, -pstrProject ID (default: from the profile).
--output, -otable | json | yamlOutput format.

tebib lb targets

Every target and its health.

tebib lb targets [OPTIONS] LB_ID
ArgumentDescription
LB_ID requiredLoad balancer ID (lb-...).
OptionValueDescription
--project, -pstrProject ID (default: from the profile).
--output, -otable | json | yamlOutput format.

tebib lb update

Change a load balancer's description or tags.

tebib lb update [OPTIONS] ID
ArgumentDescription
ID requiredLoad balancer ID (lb-...).
OptionValueDescription
--descriptionstrNew description.
--tagKEY=VALUE (repeatable)Replace ALL tags (KEY=VALUE, repeatable).
--clear-tagsflagRemove all tags.
--project, -pstrProject ID (default: from the profile).
--output, -otable | json | yamlOutput format.

tebib lb listener

Listeners: ports on the load balancer and where they forward.

tebib lb listener add

Listen on a port and forward to a target group.

tebib lb listener add [OPTIONS] LB_ID
ArgumentDescription
LB_ID requiredLoad balancer ID (lb-...).
OptionValueDescription
--port requiredint rangePort on the load balancer.
--target-group requiredstrTarget group ID.
--protocolstrtcp or http (as the target group). Default: tcp.
--project, -pstrProject ID (default: from the profile).
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 300.
--output, -otable | json | yamlOutput format.

tebib lb listener remove

Stop listening on a port.

tebib lb listener remove [OPTIONS] LB_ID ID
ArgumentDescription
LB_ID requiredLoad balancer ID (lb-...).
ID requiredListener ID (lbl-...).
OptionValueDescription
--yes, -yflagDon't ask for confirmation.
--project, -pstrProject ID (default: from the profile).
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 300.
--output, -otable | json | yamlOutput format.

tebib lb listener set-target-group

Forward a listener to another target group.

tebib lb listener set-target-group [OPTIONS] LB_ID ID GROUP_ID
ArgumentDescription
LB_ID requiredLoad balancer ID (lb-...).
ID requiredListener ID (lbl-...).
GROUP_ID requiredTarget group ID.
OptionValueDescription
--project, -pstrProject ID (default: from the profile).
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 300.
--output, -otable | json | yamlOutput format.

tebib lb target

Targets: VMs in a target group.

tebib lb target add

Send a target group's traffic to a VM too.

tebib lb target add [OPTIONS] LB_ID GROUP_ID VM_ID
ArgumentDescription
LB_ID requiredLoad balancer ID (lb-...).
GROUP_ID requiredTarget group ID (lbtg-...).
VM_ID requiredVM ID (same VPC).
OptionValueDescription
--portint rangeThe VM's port (default: the group's).
--project, -pstrProject ID (default: from the profile).
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 300.
--output, -otable | json | yamlOutput format.

tebib lb target remove

Stop sending traffic to a target.

tebib lb target remove [OPTIONS] LB_ID GROUP_ID TARGET_ID
ArgumentDescription
LB_ID requiredLoad balancer ID (lb-...).
GROUP_ID requiredTarget group ID (lbtg-...).
TARGET_ID requiredTarget ID (lbt-...).
OptionValueDescription
--project, -pstrProject ID (default: from the profile).
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 300.
--output, -otable | json | yamlOutput format.

tebib lb target-group

Target groups: VMs with a port, an algorithm and a health check.

tebib lb target-group add

Add a target group.

tebib lb target-group add [OPTIONS] LB_ID NAME
ArgumentDescription
LB_ID requiredLoad balancer ID (lb-...).
NAME requiredGroup name, unique in the load balancer.
OptionValueDescription
--port requiredint rangeThe targets' port.
--protocolstrtcp or http. Default: tcp.
--algorithmstrround_robin, least_connections or source_ip (sticky by client address).
--proxy-protocolflagTCP only: send PROXY protocol v2.
--targetstr (repeatable)VM ID (repeatable).
--health-protocolstrtcp or http.
--health-pathstrHTTP check path, e.g. /healthz.
--health-portintCheck this port instead of the traffic port.
--health-matcherstrExpected HTTP codes, e.g. "200-399".
--health-intervalintSeconds between checks (5-300).
--health-timeoutintSeconds a check may take (2-120).
--healthy-thresholdintPasses before a target is healthy.
--unhealthy-thresholdintFailures before it is unhealthy.
--project, -pstrProject ID (default: from the profile).
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 300.
--output, -otable | json | yamlOutput format.

tebib lb target-group remove

Remove a target group no listener uses.

tebib lb target-group remove [OPTIONS] LB_ID GROUP_ID
ArgumentDescription
LB_ID requiredLoad balancer ID (lb-...).
GROUP_ID requiredTarget group ID (lbtg-...).
OptionValueDescription
--yes, -yflagDon't ask for confirmation.
--project, -pstrProject ID (default: from the profile).
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 300.
--output, -otable | json | yamlOutput format.

tebib lb target-group update

Change a target group. A new health check replaces the whole old one.

tebib lb target-group update [OPTIONS] LB_ID GROUP_ID
ArgumentDescription
LB_ID requiredLoad balancer ID (lb-...).
GROUP_ID requiredTarget group ID (lbtg-...).
OptionValueDescription
--portint rangeNew default port.
--algorithmstrround_robin, least_connections or source_ip (sticky by client address).
--proxy-protocol, --no-proxy-protocolflagTCP only.
--health-protocolstrtcp or http.
--health-pathstrHTTP check path, e.g. /healthz.
--health-portintCheck this port instead of the traffic port.
--health-matcherstrExpected HTTP codes, e.g. "200-399".
--health-intervalintSeconds between checks (5-300).
--health-timeoutintSeconds a check may take (2-120).
--healthy-thresholdintPasses before a target is healthy.
--unhealthy-thresholdintFailures before it is unhealthy.
--project, -pstrProject ID (default: from the profile).
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 300.
--output, -otable | json | yamlOutput format.