Skip to content

Commit

Permalink
Add preemptible as an option to node config (hashicorp#341)
Browse files Browse the repository at this point in the history
* Add preemptible as an option to node config

* Check for preemptible in test matching functions

* Move flattenClusterNodeConfig to node_config

* Handle bools properly when comparing in cluster and node pool tests

* Use a supported image_type in cluster tests
  • Loading branch information
selmanj authored Sep 1, 2017
1 parent 58293de commit 6e6a8d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/r/container_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ which the cluster's instances are launched
* `tags` - (Optional) The list of instance tags applied to all nodes. Tags are used to identify
valid sources or targets for network firewalls.

* `preemptible` - (Optional) A boolean that represents whether or not the underlying node VMs
are preemptible. See the [official documentation](https://cloud.google.com/container-engine/docs/preemptible-vm)
for more information. Defaults to false.

**Addons Config** supports the following addons:

* `http_load_balancing` - (Optional) The status of the HTTP Load Balancing
Expand Down
4 changes: 4 additions & 0 deletions docs/r/container_node_pool.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ resource "google_container_cluster" "primary" {

* `image_type` - (Optional) The image type to use for this node.

* `preemptible` - (Optional) A boolean that represents whether or not the underlying node VMs
are preemptible. See the [official documentation](https://cloud.google.com/container-engine/docs/preemptible-vm)
for more information. Defaults to false.

The `autoscaling` block supports:

* `minNodeCount` - (Required) Minimum number of nodes in the NodePool. Must be >=1 and
Expand Down

0 comments on commit 6e6a8d8

Please sign in to comment.