gcloud alpha compute commitments create
COMMITMENT
--plan
=PLAN
(--resources
=[local-ssd
=LOCAL-SSD
],[memory
=MEMORY
],[vcpu
=VCPU
] --resources-accelerator
=[count
=COUNT
],[type
=TYPE
]) [--auto-renew
] [--custom-end-time
=CUSTOM_END_TIME
] [--merge-source-commitments
=MERGE_SOURCE_COMMITMENTS
] [--region
=REGION
] [--split-source-commitment
=SPLIT_SOURCE_COMMITMENT
] [--type
=TYPE
; default="general-purpose"] [--existing-reservation
=[name
=NAME
],[zone
=ZONE
] | --reservations-from-file
=PATH_TO_FILE
| [--reservation
=RESERVATION
: --reservation-sharing-policy
=RESERVATION_SHARING_POLICY
--reservation-zone
=RESERVATION_ZONE
--accelerator
=[count
=COUNT
],[type
=TYPE
] --local-ssd
=[interface
=INTERFACE
],[size
=SIZE
] --machine-type
=MACHINE_TYPE
--maintenance-interval
=MAINTENANCE_INTERVAL
--min-cpu-platform
=MIN_CPU_PLATFORM
--require-specific-reservation
--resource-policies
=[KEY
=VALUE
,…] --vm-count
=VM_COUNT
--share-setting
=SHARE_SETTING
--share-with
=SHARE_WITH
,[SHARE_WITH
,…]]] [GCLOUD_WIDE_FLAG …
]
(ALPHA)
Create Compute Engine commitments.
commitment-1
in the us-central1
region, with a 12-month
plan, 9GB
of memory and 4 vcpu cores, run:
gcloud alpha compute commitments create commitment-1 --plan=12-month --resources=memory=9GB,vcpu=4 --region=us-central1
COMMITMENT
--plan
=PLAN
PLAN
must be one of: 12-month
, 36-month
, 60-month
.
At least one of these must be specified:
--resources
=[local-ssd
=LOCAL-SSD
],[memory
=MEMORY
],[vcpu
=VCPU
]
memory
vcpu
local-ssd
--resources-accelerator
=[count
=COUNT
],[type
=TYPE
]
count
type
gcloud compute accelerator-types list
to learn about all available accelerator types.
--auto-renew
--custom-end-time
=CUSTOM_END_TIME
--merge-source-commitments
=MERGE_SOURCE_COMMITMENTS
--region
=REGION
To avoid prompting when this flag is omitted, you can set the
property:compute/region
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
--split-source-commitment
=SPLIT_SOURCE_COMMITMENT
--type
=TYPE
; default="general-purpose"
memory-optimized
indicates that the commitment is for memory-optimized VMs. TYPE
must be one of: accelerator-optimized
, accelerator-optimized-a3
, accelerator-optimized-a3-mega
, accelerator-optimized-a3-ultra
, accelerator-optimized-a4
, accelerator-optimized-a4x
, compute-optimized
, compute-optimized-c2d
, compute-optimized-c3
, compute-optimized-c3d
, compute-optimized-h3
, compute-optimized-h4d
, general-purpose
, general-purpose-c4
, general-purpose-c4a
, general-purpose-c4d
, general-purpose-e2
, general-purpose-n2
, general-purpose-n2d
, general-purpose-n4
, general-purpose-n4d
, general-purpose-t2d
, graphics-optimized
, memory-optimized
, memory-optimized-m3
, memory-optimized-m4
, memory-optimized-m4-6tb
, memory-optimized-x4
, memory-optimized-x4-16tb
, memory-optimized-x4-24tb
, memory-optimized-x4-32tb
, storage-optimized-z3
.
At most one of these can be specified:
--existing-reservation
=[name
=NAME
],[zone
=ZONE
]
name
zone
--reservations-from-file
=PATH_TO_FILE
--reservation
=RESERVATION
This flag argument must be specified if any of the other arguments in this group are specified.
--reservation-sharing-policy
=RESERVATION_SHARING_POLICY
RESERVATION_SHARING_POLICY
must be one of:
ALLOW_ALL
DISALLOW_ALL
--reservation-zone
=RESERVATION_ZONE
compute/zone
property isn't set, you might be prompted to select a zone (interactive mode only).
To avoid prompting when this flag is omitted, you can set the
property:compute/zone
gcloud config set compute/zone ZONE
A list of zones can be fetched by running:
gcloud compute zones list
To unset the property, run:
gcloud config unset compute/zone
Alternatively, the zone can be stored in the environment variable
.CLOUDSDK_COMPUTE_ZONE
--accelerator
=[count
=COUNT
],[type
=TYPE
]
count
type
nvidia-tesla-k80
for nVidia Tesla K80) of accelerator to attach to instances in the reservation. Use gcloud compute accelerator-types list
to learn about all available accelerator types.
--local-ssd
=[interface
=INTERFACE
],[size
=SIZE
]
interface
scsi
and nvme
. SCSI is the default and is supported by more guest operating systems. NVME may provide higher performance.
size
--machine-type
=MACHINE_TYPE
custom-number_of_CPUs-amount_of_memory
-for example, custom-32-29440
.
--maintenance-interval
=MAINTENANCE_INTERVAL
MAINTENANCE_INTERVAL
must be one of:
PERIODIC
RECURRENT
--min-cpu-platform
=MIN_CPU_PLATFORM
--require-specific-reservation
--reservation-affinity=specific
can consume from this reservation.
--resource-policies
=[KEY
=VALUE
,…]
--vm-count
=VM_COUNT
SHARE_SETTING
must be one of:
local
projects
--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.
gcloud compute commitments create
gcloud beta compute commitments create
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4