Skip to content

Commit de0cdb7

Browse files
kentwhfyerniyazN
authored andcommitted
Add SchedulingConfig.spot to TPU v2 VM (GoogleCloudPlatform#13211)
1 parent a7b00ac commit de0cdb7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

mmv1/products/tpuv2/Vm.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,12 @@ properties:
265265
min_version: 'beta'
266266
immutable: true
267267
send_empty_value: true
268+
- name: 'spot'
269+
type: Boolean
270+
description: |
271+
Optional. Defines whether the node is Spot VM.
272+
min_version: 'beta'
273+
immutable: true
268274
- name: 'dataDisks'
269275
type: Array
270276
description: |

mmv1/templates/terraform/examples/tpu_v2_vm_full.tf.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ resource "google_tpu_v2_vm" "{{$.PrimaryResourceId}}" {
3232

3333
scheduling_config {
3434
preemptible = true
35+
spot = true
3536
}
3637

3738
shielded_instance_config {

0 commit comments

Comments
 (0)