Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions mmv1/products/tpuv2/QueuedResource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ examples:
test_env_vars:
project: PROJECT_NAME
skip_vcr: true
- name: tpu_v2_queued_resource_provisioning_options
primary_resource_id: qr
min_version: beta
vars:
qr_name: test-qr
tpu_name: test-tpu
test_env_vars:
project: PROJECT_NAME
skip_vcr: true
parameters:
- name: zone
type: String
Expand Down Expand Up @@ -155,3 +164,11 @@ properties:
description: |
Specifies networking queue count for TPU VM instance's network interface.
immutable: true
- name: provisioningModel
type: Enum
description: The provisioning model for the resource.
enum_values:
- STANDARD
- SPOT
- RESERVATION_BOUND
- FLEX_START
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
resource "google_tpu_v2_queued_resource" "{{$.PrimaryResourceId}}" {
provider = google-beta

name = "{{index $.Vars "qr_name"}}"
zone = "us-central1-c"
project = "{{index $.TestEnvVars "project"}}"

tpu {
node_spec {
parent = "projects/{{index $.TestEnvVars "project"}}/locations/us-central1-c"
node_id = "{{index $.Vars "tpu_name"}}"
node {
runtime_version = "tpu-vm-tf-2.13.0"
accelerator_type = "v2-8"
description = "Text description of the TPU."
}
}
}

provisioning_model = "SPOT"
}
Loading