Skip to content

Commit

Permalink
Merge pull request #8814 from njuCZ/issue_7780
Browse files Browse the repository at this point in the history
azurerm_kubernetes_cluster, azurerm_kubernetes_cluster_node_pool - make "availability_zones" force new
  • Loading branch information
tombuildsstuff authored Nov 6, 2020
2 parents 9aaecf4 + 3ad1f53 commit ae711ac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func resourceArmKubernetesClusterNodePool() *schema.Resource {
"availability_zones": {
Type: schema.TypeList,
Optional: true,
ForceNew: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func SchemaDefaultNodePool() *schema.Schema {
"availability_zones": {
Type: schema.TypeList,
Optional: true,
ForceNew: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
Expand Down
4 changes: 1 addition & 3 deletions website/docs/r/kubernetes_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ A `default_node_pool` block supports the following:

* `vm_size` - (Required) The size of the Virtual Machine, such as `Standard_DS2_v2`.

* `availability_zones` - (Optional) A list of Availability Zones across which the Node Pool should be spread.
* `availability_zones` - (Optional) A list of Availability Zones across which the Node Pool should be spread. Changing this forces a new resource to be created.

-> **NOTE:** This requires that the `type` is set to `VirtualMachineScaleSets` and that `load_balancer_sku` is set to `Standard`.

Expand Down Expand Up @@ -482,8 +482,6 @@ provider "kubernetes" {

## Timeouts



The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/docs/configuration/resources.html#timeouts) for certain actions:

* `create` - (Defaults to 90 minutes) Used when creating the Kubernetes Cluster.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/kubernetes_cluster_node_pool.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ The following arguments are supported:

---

* `availability_zones` - (Optional) A list of Availability Zones where the Nodes in this Node Pool should be created in.
* `availability_zones` - (Optional) A list of Availability Zones where the Nodes in this Node Pool should be created in. Changing this forces a new resource to be created.

* `enable_auto_scaling` - (Optional) Whether to enable [auto-scaler](https://docs.microsoft.com/en-us/azure/aks/cluster-autoscaler). Defaults to `false`.

Expand Down

0 comments on commit ae711ac

Please sign in to comment.