Skip to content

Commit

Permalink
Add spotVM for GKE Node Pools (#5443) (#10591)
Browse files Browse the repository at this point in the history
* Add spotVM for GKE Node Pools

Signed-off-by: Alex R <[email protected]>

* Add spot test

Signed-off-by: Alex R <[email protected]>

* Guard for beta only

Signed-off-by: Alex R <[email protected]>

* Add beta note to docs

Signed-off-by: Alex R <[email protected]>
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Nov 18, 2021
1 parent 4d94cf1 commit 125b865
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/5443.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
container: added `spot` field to `node_config` sub-resource (beta)
```
4 changes: 4 additions & 0 deletions website/docs/r/container_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down

0 comments on commit 125b865

Please sign in to comment.