gdcloud compute backends create

名称

gdcloud compute backends create - 为负载均衡器创建后端。

摘要

gdcloud compute backends create BACKEND_NAME [flags]

示例

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.

GDCLOUD 全局标志

以下标志适用于所有命令:--configuration--format--help--project--quiet

如需了解详情,请参阅 gdcloud CLI 参考概览页面。