gdcloud compute forwarding-rules create

이름

gdcloud compute forwarding-rules create - 부하 분산기의 전달 규칙을 만듭니다.

개요

gdcloud compute forwarding-rules create FORWARDING_RULE_NAME [flags]

EXAMPLES

To create the global forwarding rule "fr-elb" for a load balancer, run:

    gdcloud compute forwarding-rules create fr-elb \
      --backend-service=network-lb-backend-service \
      --cidr=my-cidr \
      --ip-protocol-port=tcp:8080,udp:443 \
      --global

    To create the zonal forwarding rule "fr-ilb" for a load balancer, run:

    gdcloud compute forwarding-rules create fr-elb \
      --backend-service=network-lb-backend-service \
      --cidr=my-cidr \
      --ip-protocol-port=tcp:8080,udp:443 \
      --load-balancing-scheme=INTERNAL

필수 플래그

      --ip-protocol-port strings   IP protocol that the rule serves. Note that the protocol must be either TCP or UDP. The L4 port for which packets are forwarded to the backend are configured with this forwarding rule. Protocol defaults to TCP if not specified.

선택적 플래그

      --backend-service string         Target backend service that receives the traffic. It has to reference a backend service in the same namespace as this forwarding rule.
      --cidr string                    CIDR to use for this forwarding rule. It has to be an object in the same namespace as this forwarding rule. If not specified, an IPv4/32 CIDR will be auto-reserved from the IP address pool.
      --global                         If set, the global forwarding rule is created.
      --load-balancing-scheme string   Load balancing scheme of the forwarding rule. Available values are INTERNAL or EXTERNAL. (default "EXTERNAL")
      --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 참조 개요 페이지를 참고하세요.