1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-16 20:36:39 +00:00
gcloud-help/gcloud/alpha/compute/tpus/queued-resources/create

280 lines
10 KiB
Text
Raw Normal View History

2022-04-06 08:36:53 +00:00
NAME
gcloud alpha compute tpus queued-resources create - create a Queued
Resource
SYNOPSIS
gcloud alpha compute tpus queued-resources create
2023-04-26 10:24:37 +00:00
(QUEUED_RESOURCE : --zone=ZONE) --runtime-version=RUNTIME_VERSION
(--accelerator-type=ACCELERATOR_TYPE | --topology=TOPOLOGY --type=TYPE)
2023-04-20 10:38:56 +00:00
(--node-id=NODE_ID
| [--node-count=NODE_COUNT : --node-prefix=NODE_PREFIX]) [--async]
2023-04-26 10:24:37 +00:00
[--best-effort] [--data-disk=DATA_DISK] [--description=DESCRIPTION]
[--guaranteed] [--internal-ips] [--labels=[LABELS,...]]
2023-04-12 10:43:12 +00:00
[--metadata=[METADATA,...]]
[--metadata-from-file=[METADATA_FROM_FILE,...]]
2023-04-26 10:24:37 +00:00
[--network=NETWORK; default="default"] [--range=RANGE]
2023-03-29 10:40:15 +00:00
[--reservation-host-folder=RESERVATION_HOST_FOLDER]
[--reservation-host-organization=RESERVATION_HOST_ORGANIZATION]
[--reservation-host-project=RESERVATION_HOST_PROJECT] [--reserved]
2023-04-06 10:23:36 +00:00
[--scopes=[SCOPES,...]] [--service-account=SERVICE_ACCOUNT]
2023-04-26 10:24:37 +00:00
[--shielded-secure-boot] [--subnetwork=SUBNETWORK] [--tags=[TAGS,...]]
2023-04-20 10:38:56 +00:00
[--valid-after-duration=VALID_AFTER_DURATION]
2022-06-15 08:33:03 +00:00
[--valid-after-time=VALID_AFTER_TIME]
[--valid-until-duration=VALID_UNTIL_DURATION]
[--valid-until-time=VALID_UNTIL_TIME] [GCLOUD_WIDE_FLAG ...]
2022-04-06 08:36:53 +00:00
DESCRIPTION
(ALPHA) Create a new Queued Resource with the specified attributes.
EXAMPLES
To create a Queued Resource with ID my-queued-resource in zone
2023-02-01 11:38:52 +00:00
us-central2-b and project my-project, run:
2022-04-06 08:36:53 +00:00
$ gcloud alpha compute tpus queued-resources create \
2023-02-01 11:38:52 +00:00
my-queued-resource --accelerator-type=v4-8 \
--runtime-version=v2-alpha-tpuv4 --node-id=my-node-001 \
--zone=us-central2-b --project=my-project
2022-04-06 08:36:53 +00:00
2022-05-18 08:41:01 +00:00
To create a Queued Resource with multiple nodes, run:
$ gcloud alpha compute tpus queued-resources create \
2023-02-01 11:38:52 +00:00
my-queued-resource --accelerator-type=v4-8 \
2023-04-20 10:38:56 +00:00
--runtime-version=v2-alpha-tpuv4 --node-count=2 \
--zone=us-central2-b --project=my-project
2022-05-18 08:41:01 +00:00
2022-04-06 08:36:53 +00:00
POSITIONAL ARGUMENTS
Queued resource resource - The Queued Resource you want to create. The
arguments in this group can be used to specify the attributes of this
resource. (NOTE) Some attributes are not given arguments in this group but
2023-05-04 10:43:54 +00:00
can be set in other ways.
To set the project attribute:
2022-04-06 08:36:53 +00:00
◆ provide the argument queued_resource on the command line with a fully
specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
This must be specified.
QUEUED_RESOURCE
ID of the queued_resource or fully qualified identifier for the
2023-05-04 10:43:54 +00:00
queued_resource.
To set the queued_resource attribute:
2022-04-06 08:36:53 +00:00
▸ provide the argument queued_resource on the command line.
2022-08-10 08:48:58 +00:00
This positional argument must be specified if any of the other
arguments in this group are specified.
2022-04-06 08:36:53 +00:00
--zone=ZONE
The compute/zone of the Cloud TPU.
If not specified, will use default compute/zone.
To set the zone attribute:
▸ provide the argument queued_resource on the command line with a
fully specified name;
▸ provide the argument --zone on the command line;
▸ set the property compute/zone.
2022-05-04 09:15:29 +00:00
REQUIRED FLAGS
2022-04-06 08:36:53 +00:00
--runtime-version=RUNTIME_VERSION
Runtime version for the TPU, such as 2.3.
2023-04-26 10:24:37 +00:00
Specify a chip-based or core-based TPU node.
Exactly one of these must be specified:
Core-based TPU configuration
--accelerator-type=ACCELERATOR_TYPE
Accelerator type for the TPU.
Chip-based TPU configuration
--topology=TOPOLOGY
Chip topology for TPU.
This flag argument must be specified if any of the other arguments
in this group are specified.
--type=TYPE
Type of TPU. TYPE must be one of: v2, v3, v4.
This flag argument must be specified if any of the other arguments
in this group are specified.
2023-04-20 10:38:56 +00:00
Specify TPU node(s) with either a single node id or a node count and an
optional node prefix
2023-02-01 11:38:52 +00:00
Exactly one of these must be specified:
Single node creation
--node-id=NODE_ID
Unqualified node identifier used to identify the node in the
project once provisioned.
2023-04-20 10:38:56 +00:00
To request a resource with multiple nodes, in place of --node-id,
use --node-count to specify the number of nodes and optionally use
--node-prefix to specify the prefix for each node.
2023-02-01 11:38:52 +00:00
Multinode creation
--node-count=NODE_COUNT
The number of nodes in a multislice provision, also used to
generate the qualified name for nodes in the provision. Value must
be greater than 1.
This flag argument must be specified if any of the other arguments
in this group are specified.
--node-prefix=NODE_PREFIX
Node prefix used to generate the qualified name of each node the
2023-04-20 10:38:56 +00:00
multislice node provision. If not supplied, the queued resource id
will be used as the prefix.
2023-02-01 11:38:52 +00:00
Must also specify --node-count.
2022-05-04 09:15:29 +00:00
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to
complete.
2022-06-15 08:33:03 +00:00
--best-effort
If provided, the Node requested here may be scheduled at the 'best
effort' tier.
2023-04-26 10:24:37 +00:00
--data-disk=DATA_DISK
Additional data disks for the TPU VM.
This flag must be repeated to provide multiple data disks. For example:
$ gcloud alpha compute tpus queued-resources create \
--data-disk \
source=projects/my-project/zones/us-central1-c/disks/my-disk,\
mode=read-only
The following keys are allowed:
source
Specifies the full path to an existing disk. Required. The disk
must be in the same zone.
mode
Specifies the mode in which to attach this disk. Valid options are
'read-write', 'read-only'. If not specified, the default is
'read-write'.
--description=DESCRIPTION
Text description of the TPU.
2022-06-15 08:33:03 +00:00
--guaranteed
If provided, the Node requested here will only be scheduled at the
'guaranteed' tier.
2022-07-13 09:59:38 +00:00
--internal-ips
Indicates that the IP addresses for the node should be internal. The
default is that external IP addresses will be associated with the TPU
workers.
2023-04-26 10:24:37 +00:00
--labels=[LABELS,...]
Resource labels to represent user-provided metadata. See
https://cloud.google.com/compute/docs/labeling-resources for details.
2023-04-12 10:43:12 +00:00
--metadata=[METADATA,...]
List of comma-separated metadata key-value pairs for the Cloud TPU VM
node. Example: --metadata='key1=value1,key2=value2'
--metadata-from-file=[METADATA_FROM_FILE,...]
Same as --metadata except the value for the entry will be read from a
local file. Example: --metadata-from-file='key1=value1.txt'
2023-04-06 10:23:36 +00:00
--network=NETWORK; default="default"
Network that this TPU will be a part of.
2023-04-26 10:24:37 +00:00
--range=RANGE
CIDR range for the TPU.
The IP range that the TPU will select an IP address from. Must be in
CIDR notation and a /29 range, for example 192.168.0.0/29. Errors will
occur if the CIDR range has already been used for a currently existing
TPU, the CIDR range conflicts with any networks in the user's provided
network, or the provided network is peered with another network that is
using that CIDR range.
2023-03-29 10:40:15 +00:00
--reservation-host-folder=RESERVATION_HOST_FOLDER
The folder hosting the reservation that the TPU should use. Only one
reservation host entity may be specified.
--reservation-host-organization=RESERVATION_HOST_ORGANIZATION
The organization hosting the reservation that the TPU should use. Only
one reservation host entity may be specified.
--reservation-host-project=RESERVATION_HOST_PROJECT
The project hosting the reservation that the TPU should use. Only one
reservation host entity may be specified.
2022-06-15 08:33:03 +00:00
--reserved
Specifies the request should be scheduled on reserved capacity.
If this flag is set the guaranteed flag is also set.
2023-04-06 10:23:36 +00:00
--scopes=[SCOPES,...]
List of comma-separated scopes to be made available for the service
account.
--service-account=SERVICE_ACCOUNT
Email address of the service account. If empty, default Google Compute
Engine service account will be used.
2023-04-26 10:24:37 +00:00
--shielded-secure-boot
Specifies that the TPU instances are created with secure boot enabled.
This implicitly makes them Shielded VM instances.
2023-04-06 10:23:36 +00:00
--subnetwork=SUBNETWORK
Subnetwork that this TPU will be a part of.
2023-04-20 10:38:56 +00:00
--tags=[TAGS,...]
Tags to apply to the TPU Node. Tags are used to identify valid sources
or targets for network firewalls. See
https://cloud.google.com/vpc/docs/add-remove-network-tags for more
details.
2022-06-15 08:33:03 +00:00
--valid-after-duration=VALID_AFTER_DURATION
A duration before which the TPU must not be provisioned, relative to
2022-07-13 09:59:38 +00:00
the current time. See $ gcloud topic datetimes for information on
duration formats.
2022-06-15 08:33:03 +00:00
--valid-after-time=VALID_AFTER_TIME
2022-07-13 09:59:38 +00:00
An absolute time before which the TPU must not be provisioned. See $
gcloud topic datetimes for information on duration formats.
2022-06-15 08:33:03 +00:00
--valid-until-duration=VALID_UNTIL_DURATION
A duration after which the TPU must not be provisioned, relative to the
2022-07-13 09:59:38 +00:00
current time. See $ gcloud topic datetimes for information on duration
formats.
2022-06-15 08:33:03 +00:00
--valid-until-time=VALID_UNTIL_TIME
2022-07-13 09:59:38 +00:00
An absolute time after which resources must not be created. See $
gcloud topic datetimes for information on duration formats.
2022-06-15 08:33:03 +00:00
2022-04-06 08:36:53 +00:00
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.
API REFERENCE
This command uses the tpu/v2alpha1 API. The full documentation for this API
can be found at: https://cloud.google.com/tpu/
NOTES
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
access allowlist.