Update cloud_dns_config to default to KUBE_DNS (CoreDNS)#5336
Conversation
- Changed the default cluster_dns provider from PROVIDER_UNSPECIFIED to KUBE_DNS in the gke-cluster module. - Updated the variable description to correctly reflect KUBE_DNS as the default option which maps to CoreDNS on GKE 1.21+.
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request streamlines GKE cluster configurations by aligning default DNS settings with modern practices and enabling a key networking feature by default. It ensures that new clusters leverage Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates the default DNS configuration for GKE clusters to use KUBE_DNS and enables the external DNS endpoint by default. However, enabling the external DNS endpoint by default significantly increases the attack surface of the GKE control plane by exposing a public DNS record and potentially a public IP, even for clusters intended to be private. It is recommended to maintain a 'secure by default' approach by keeping this feature disabled unless explicitly requested. Additionally, please improve the validation logic for cloud_dns_config.cluster_dns by using the contains function for better readability and maintainability, and ensure the module's README.md is updated to reflect these new default values.
|
SUCCESS PR-test-gke go/ghpc-cb/a54865b9-6fba-422a-9eb9-1bd860707f29 |
1d4a735
into
GoogleCloudPlatform:develop
Update cloud_dns_config to default to
KUBE_DNSPROVIDER_UNSPECIFIEDtoKUBE_DNSin the gke-cluster module.KUBE_DNSas the default option which maps toCoreDNSon GKE 1.21+.