Skip to content

Commit

Permalink
issue GoogleCloudPlatform#475: add doc about GKE node pools in terraf…
Browse files Browse the repository at this point in the history
…orm (GoogleCloudPlatform#5289)

Short explanation about why GKE node pools should be defined separately from the cluster resource
when using terraform.
  • Loading branch information
pgier authored and khajduczenia committed Oct 12, 2021
1 parent dc84b95 commit 1103e35
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ resource "google_container_node_pool" "primary_preemptible_nodes" {
}
```

~> **Note:** It is recommended that node pools be created and managed as separate resources as in the example above.
This allows node pools to be added and removed without recreating the cluster. Node pools defined directly in the
`google_container_cluster` resource cannot be removed without re-creating the cluster.

## Example Usage - with the default node pool

```hcl
Expand Down

0 comments on commit 1103e35

Please sign in to comment.