Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to change dnsPolicy of ExternalDNS deployment #1428

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

jkremser
Copy link
Member

@jkremser jkremser commented Jan 30, 2024

why?

When deploying k8gb to vanilla k8s clusters that were created using cluster API and kubeadm (no EKS, no managed control planes).

The ExternalDNS deployment has an issue with resolving route53.amazonaws.com. By default the dnsPolicy if not specified is ClusterFirst so this PR is a no-op in terms of backward compatibility, but if changed to Default this fixed the previous situation for me. I guess, this can be solved also by tweaking the dns server for this k8s cluster or by providing own corefile for coredns, but it can't hurt either to allow this easy fix.

docs
Default ... use host for resolving the dns names
ClusterFirst ... Any DNS query that does not match the configured cluster domain suffix, such as "www.kubernetes.io", is forwarded to an upstream nameserver by the DNS server. Cluster administrators may have extra stub-domain and upstream DNS servers configured.

more context:
i have to do ugly hacks because of it :D

Copy link
Member

@ytsarev ytsarev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find

@jkremser jkremser merged commit 3662f28 into k8gb-io:master Feb 2, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants