To create backend "my-backend" for a load balancer, run:
gdcloud compute backends create my-backend \
--cluster-name="user-vm-1-cluster" \
--labels=app=web,rev=v1.2
REQUIRED FLAGS
--labels strings Selector defining which endpoints (Pods or VMs) to use for this backend.
OPTIONAL FLAGS
--cluster-name string Name of the Kubernetes cluster that the scope of the defined selectors are limited to.
--zone string Zone to use for this invocation. To preset the zone flag for all commands that require it, run: "gdcloud config set core/zone ZONE". The zone flag is available only in multi-zone environments.
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-12 UTC."],[[["This command creates backends for a load balancer within a specified Kubernetes cluster."],["The `--labels` flag is required to define the endpoints (Pods or VMs) used by the backend."],["The optional `--cluster-name` flag limits the scope of the selectors to a specific cluster."],["The command can also utilize the optional `--zone` flag in multi-zone environments to specify the target zone."],["The backend configuration created will require the user to provide a `BACKEND_NAME` as an argument to the command."]]],[]]