NAME

gcloud alpha compute tpus queued-resources create - create a Queued Resource

SYNOPSIS

gcloud alpha compute tpus queued-resources create (QUEUED_RESOURCE : --zone=ZONE) --accelerator-type=ACCELERATOR_TYPE --node-id=[NODE_ID,...] --runtime-version=RUNTIME_VERSION [--async] [--best-effort] [--guaranteed] [--internal-ips] [--reserved] [--valid-after-duration=VALID_AFTER_DURATION] [--valid-after-time=VALID_AFTER_TIME] [--valid-until-duration=VALID_UNTIL_DURATION] [--valid-until-time=VALID_UNTIL_TIME] [GCLOUD_WIDE_FLAG ...]

DESCRIPTION

(ALPHA) Create a new Queued Resource with the specified attributes.

EXAMPLES

To create a Queued Resource with ID my-queued-resource in zone us-central1-b and project my-project, run:

$ gcloud alpha compute tpus queued-resources create \ my-queued-resource --accelerator-type=v2-8 \ --runtime-version=v2-alpha --node-id=my-node-001 \ --zone=us-central1-b --project=my-project

To create a Queued Resource with multiple nodes, run:

$ gcloud alpha compute tpus queued-resources create \ my-queued-resource --accelerator-type=v2-8 \ --runtime-version=v2-alpha --node-id=my-node-001,my-node-002 \ --zone=us-central1-b --project=my-project

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 can be set in other ways. To set the project attribute:

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 queued_resource. To set the queued_resource attribute:

  • provide the argument queued_resource on the command line.

This positional argument must be specified if any of the other arguments in this group are specified.

--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.

REQUIRED FLAGS

--accelerator-type=ACCELERATOR_TYPE

Accelerator type for the TPU.

--node-id=[NODE_ID,...]

The unqualified Node identifier, used to identify the TPU in the Nodes collection once provisioned.

To request a resource with multiple nodes, enter multiple, unique, unqualified Node identifiers as a comma delimited list.

--runtime-version=RUNTIME_VERSION

Runtime version for the TPU, such as 2.3.

OPTIONAL FLAGS

--async

Return immediately, without waiting for the operation in progress to complete.

--best-effort

If provided, the Node requested here may be scheduled at the 'best effort' tier.

--guaranteed

If provided, the Node requested here will only be scheduled at the 'guaranteed' tier.

--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.

--reserved

Specifies the request should be scheduled on reserved capacity.

If this flag is set the guaranteed flag is also set.

--valid-after-duration=VALID_AFTER_DURATION

A duration before which the TPU must not be provisioned, relative to the current time. See $ gcloud topic datetimes for information on duration formats.

--valid-after-time=VALID_AFTER_TIME

An absolute time before which the TPU must not be provisioned. See $ gcloud topic datetimes for information on duration formats.

--valid-until-duration=VALID_UNTIL_DURATION

A duration after which the TPU must not be provisioned, relative to the current time. See $ gcloud topic datetimes for information on duration formats.

--valid-until-time=VALID_UNTIL_TIME

An absolute time after which resources must not be created. See $ gcloud topic datetimes for information on duration formats.

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.