Open acloudpotato opened 3 months ago
Hi Team, We are also looking for this feature available in the GKE Autopilot cluster. A similar feature is already supported on the standard GKE terraform code. We hope this will come out as soon as possible.
Hi Team, We are not able to use GKE auto pilot to one of our customer due to unavailability of this feature. Let us know once this feature is rolled out.
Team, We are looking for this feature to be available in the GKE Autopilot cluster, similar to what is already supported in the standard GKE terraform code.
This is a bug in the google-beta terraform provider. I have submitted a PR to fix this https://github.com/GoogleCloudPlatform/magic-modules/pull/11562
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
There is still no option of additive_vpc_scope_dns_domain under autopilot TF code dns_config , this option is only available from console.
Please look into this issue on priority basis as this is needed to be set for one of our customer through TF.
TL;DR
When creating an Autopilot cluster using the
google_container_cluster resource
block, thedns_config
block is unsupported ifenable_autopilot
is set totrue
.Although the console and REST documentation indicate that the
additive_vpc_scope_dns_domain
value can be set on a GKE Autopilot cluster(Reference Link) However, as thedns_config
block is not supported in this context, theadditive_vpc_scope_dns_domain
variable is also ignored for autopilot mode GKE Cluster.Terraform Resources
Detailed design
Additional information
Expected Behavior: The Terraform
google_container_cluster resource
should support configuring DNS settings for Autopilot clusters through thedns_config
block(maybe along with Cloud DNS as default DNS), enabling management of parameters likeadditive_vpc_scope_dns_domain
within the infrastructure as code definition.Current Workaround: Currently, DNS settings for Autopilot clusters must be configured manually post-creation using the Google Cloud Console or the REST API.
Impact: This limitation prevents users from fully automating GKE Autopilot cluster creation and management using Terraform, increasing the risk of configuration drift and requiring manual intervention.