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 setting K8S_DNS instead of getting it from default resov.conf #60

Merged
merged 2 commits into from
Oct 5, 2024

Conversation

Ruakij
Copy link

@Ruakij Ruakij commented Jul 17, 2024

Description of the change

Add settings option to set the local dns server instead of using the default one provided by resolv.conf

Benefits

Allowing to set the dns to be used, but only for resolved domains via pod-gateway dnsmasq.

Possible drawbacks

As its a static setting, changes to dns settings wont affect pod-gateway directly. Something to keep in mind.

Applicable issues

I had an issue where the K8s-nameserver from resolv.conf was 1.1.1.1 (i think based on the worker node) and neither dnsConfig.nameservers nor dnsPolicy could change it.
I made this commit to make the change regardless.

@angelnu angelnu merged commit 16f1852 into angelnu:main Oct 5, 2024
1 check passed
@Ruakij Ruakij deleted the feature/k8s-dns-server-setting branch October 26, 2024 14:03
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.

2 participants