Skip to content

Commit

Permalink
kubernetes_cluster: add None as a valid private_dns_zone_id value (#1…
Browse files Browse the repository at this point in the history
…0774)

azurerm_custom_provider
  • Loading branch information
favoretti authored Mar 9, 2021
1 parent 95b52e7 commit d8a7153
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ func resourceKubernetesCluster() *schema.Resource {
privateDnsValidate.PrivateDnsZoneID,
validation.StringInSlice([]string{
"System",
"None",
}, false),
),
},
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/kubernetes_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ In addition, one of either `identity` or `service_principal` blocks must be spec

* `private_cluster_enabled` - Should this Kubernetes Cluster have its API server only exposed on internal IP addresses? This provides a Private IP Address for the Kubernetes API on the Virtual Network where the Kubernetes Cluster is located. Defaults to `false`. Changing this forces a new resource to be created.

* `private_dns_zone_id` - (Optional) Either the ID of Private DNS Zone which should be delegated to this Cluster, or `System` to have AKS manage this.
* `private_dns_zone_id` - (Optional) Either the ID of Private DNS Zone which should be delegated to this Cluster, `System` to have AKS manage this or `None`. In case of `None` you will need to bring your own DNS server and set up resolving, otherwise cluster will have issues after provisioning.

-> **NOTE:** If you use BYO DNS Zone, AKS cluster should either use a User Assigned Identity or a service principal (which is deprecated) with the `Private DNS Zone Contributor` role and access to this Private DNS Zone. If `UserAssigned` identity is used - to prevent improper resource order destruction - cluster should depend on the role assignment, like in this example:

Expand Down

0 comments on commit d8a7153

Please sign in to comment.