hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.36k stars 1.75k forks source link

Add control_plane_endpoints_config to gke examples #20497

Open mwarkentin opened 6 days ago

mwarkentin commented 6 days ago

Community Note

Description

The control_plane_endpoints_config option was recently added to google_container_cluster. It would be nice if the examples showed how to use it! It's a bit confusing particularly for "endpoint - (Output) The cluster's DNS endpoint." as that doesn't seem like something that is actually set by the user but an output instead.

The control_plane_endpoints_config block supports:
dns_endpoint_config - (Optional) DNS endpoint configuration.
The control_plane_endpoints_config.dns_endpoint_config block supports:
endpoint - (Output) The cluster's DNS endpoint.
allow_external_traffic - (Optional) Controls whether user traffic is allowed over this endpoint. Note that GCP-managed services may still use the endpoint even if this is false.

New or Affected Resource(s)

Potential Terraform Configuration

N/A

References

b/381887394

rileykarson commented 1 day ago

Note: We may want more thorough GKE examples in general, the current ones mostly cover the opinions Terraform has on node pool attachment and nothing else but basic configuration