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
必要標記
--labels strings Selector defining which endpoints (Pods or VMs) to use for this backend.
選用旗標
--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.
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# gdcloud compute backends create\n\nNAME\n----\n\ngdcloud compute backends create - Create backends for a load balancer.\n\nSYNOPSIS\n--------\n\n gdcloud compute backends create BACKEND_NAME [flags]\n\n### EXAMPLES\n\n To create backend \"my-backend\" for a load balancer, run:\n\n gdcloud compute backends create my-backend \\\n --cluster-name=\"user-vm-1-cluster\" \\\n --labels=app=web,rev=v1.2\n\n### REQUIRED FLAGS\n\n --labels strings Selector defining which endpoints (Pods or VMs) to use for this backend.\n\n### OPTIONAL FLAGS\n\n --cluster-name string Name of the Kubernetes cluster that the scope of the defined selectors are limited to.\n --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.\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/appliance/resources/gdcloud-reference/gdcloud) page."]]