mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-17 06:11:59 +00:00
86 lines
3.1 KiB
Text
86 lines
3.1 KiB
Text
NAME
|
|
gcloud beta compute resource-policies create group-placement - create a
|
|
Compute Engine group placement resource policy
|
|
|
|
SYNOPSIS
|
|
gcloud beta compute resource-policies create group-placement NAME
|
|
[--availability-domain-count=AVAILABILITY_DOMAIN_COUNT]
|
|
[--collocation=COLLOCATION] [--description=DESCRIPTION]
|
|
[--max-distance=MAX_DISTANCE] [--region=REGION] [--vm-count=VM_COUNT]
|
|
[GCLOUD_WIDE_FLAG ...]
|
|
|
|
DESCRIPTION
|
|
(BETA) Create a Compute Engine Group Placement Resource Policy.
|
|
|
|
EXAMPLES
|
|
To create a Compute Engine group placement policy with two availability
|
|
domains, run: $ gcloud beta compute resource-policies create group-placement \
|
|
my-resource-policy --region=REGION --availability-domain-count=2
|
|
|
|
POSITIONAL ARGUMENTS
|
|
NAME
|
|
Name of the resource policy to operate on.
|
|
|
|
FLAGS
|
|
--availability-domain-count=AVAILABILITY_DOMAIN_COUNT
|
|
Number of availability domain in the group placement policy.
|
|
|
|
--collocation=COLLOCATION
|
|
Collocation specifies whether to place VMs inside the sameavailability
|
|
domain on the same low-latency network. COLLOCATION must be one of:
|
|
|
|
collocated
|
|
Low network latency between more VMs placed on the same
|
|
availability domain.
|
|
unspecified-collocation
|
|
Unspecified network latency between VMs placed on the same
|
|
availability domain. This is the default behavior.
|
|
|
|
--description=DESCRIPTION
|
|
An optional, textual description for the backend.
|
|
|
|
--max-distance=MAX_DISTANCE
|
|
Specifies the number of max logical switches between VMs.
|
|
|
|
--region=REGION
|
|
Region of the resource policy to operate on. If not specified, you
|
|
might be prompted to select a region (interactive mode only).
|
|
|
|
To avoid prompting when this flag is omitted, you can set the
|
|
compute/region property:
|
|
|
|
$ gcloud config set compute/region REGION
|
|
|
|
A list of regions can be fetched by running:
|
|
|
|
$ gcloud compute regions list
|
|
|
|
To unset the property, run:
|
|
|
|
$ gcloud config unset compute/region
|
|
|
|
Alternatively, the region can be stored in the environment variable
|
|
CLOUDSDK_COMPUTE_REGION.
|
|
|
|
--vm-count=VM_COUNT
|
|
Number of instances targeted by the group placement policy. Google does
|
|
not recommend that you use this flag unless you use a compact policy
|
|
and you want your policy to work only if it contains this exact number
|
|
of VMs.
|
|
|
|
GCLOUD WIDE FLAGS
|
|
These flags are available to all commands: --access-token-file, --account,
|
|
--billing-project, --configuration, --flags-file, --flatten, --format,
|
|
--help, --impersonate-service-account, --log-http, --project, --quiet,
|
|
--trace-token, --user-output-enabled, --verbosity.
|
|
|
|
Run $ gcloud help for details.
|
|
|
|
NOTES
|
|
This command is currently in beta and might change without notice. These
|
|
variants are also available:
|
|
|
|
$ gcloud compute resource-policies create group-placement
|
|
|
|
$ gcloud alpha compute resource-policies create group-placement
|
|
|