From 125b865344918080fc185ca98f1d12c5de6f7386 Mon Sep 17 00:00:00 2001 From: The Magician Date: Thu, 18 Nov 2021 09:37:37 -0800 Subject: [PATCH] Add spotVM for GKE Node Pools (#5443) (#10591) * Add spotVM for GKE Node Pools Signed-off-by: Alex R * Add spot test Signed-off-by: Alex R * Guard for beta only Signed-off-by: Alex R * Add beta note to docs Signed-off-by: Alex R Signed-off-by: Modular Magician --- .changelog/5443.txt | 3 +++ website/docs/r/container_cluster.html.markdown | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 .changelog/5443.txt diff --git a/.changelog/5443.txt b/.changelog/5443.txt new file mode 100644 index 00000000000..52abb267c87 --- /dev/null +++ b/.changelog/5443.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +container: added `spot` field to `node_config` sub-resource (beta) +``` diff --git a/website/docs/r/container_cluster.html.markdown b/website/docs/r/container_cluster.html.markdown index 316112f1a5a..689ec9ee670 100644 --- a/website/docs/r/container_cluster.html.markdown +++ b/website/docs/r/container_cluster.html.markdown @@ -678,6 +678,10 @@ gcfs_config { are preemptible. See the [official documentation](https://cloud.google.com/container-engine/docs/preemptible-vm) for more information. Defaults to false. +* `spot` - (Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html)) A boolean + that represents whether the underlying node VMs are spot. See the [official documentation](https://cloud.google.com/kubernetes-engine/docs/concepts/spot-vms) + for more information. Defaults to false. + * `sandbox_config` - (Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html)) [GKE Sandbox](https://cloud.google.com/kubernetes-engine/docs/how-to/sandbox-pods) configuration. When enabling this feature you must specify `image_type = "COS_CONTAINERD"` and `node_version = "1.12.7-gke.17"` or later to use it. Structure is [documented below](#nested_sandbox_config).