-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 coredns override extensions #7583
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! You need to make download generate
and check in the resulting changes.
Also as a CNCF project we need to have commits signed, can you please make sure to commit with |
@andrewroffey your commits are signed (-S/--gpg-sign), but not signed off (-s/--signoff). DCO requires signoff, not signature. |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #7583 +/- ##
==========================================
- Coverage 47.71% 47.55% -0.17%
==========================================
Files 140 140
Lines 14284 14284
==========================================
- Hits 6816 6793 -23
- Misses 6399 6413 +14
- Partials 1069 1078 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Signed-off-by: Andrew Roffey <[email protected]>
@brandond oops, third time lucky, TIL about the -s flag. I've updated that with both this time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are still in code freeze for May releases, but this will get in after that, should be in all June releases.
Thanks a lot for the PR, and for signing your commits :) Like Derek said we'll get this in as soon as code freeze is thawed |
Cheers! That's just around the corner, sounds great. |
Proposed Changes
Allow CoreDNS override extensions in default Corefile
Other K8s implementations such as AKS[1] and DigitalOcean[2] have similar configuration
This would enable ConfigMaps to adjust the CoreDNS settings without creating a whole copy of coredns.yaml.
1: https://learn.microsoft.com/en-us/azure/aks/coredns-custom
2: https://docs.digitalocean.com/products/kubernetes/how-to/customize-coredns/
Types of Changes
New Feature
Verification
import /etc/coredns/custom/*.override
in the.:53
default server blockcoredns-custom
ConfigMap with some custom settings for the default server block, e.g.rewrite name substring svc.example.com svc.cluster.local
nslookup my-pod.my-svc.my-namespace.svc.example.com
orgetent hosts ...
in a pod and confirm it resolves to the same name asmy-pod.my-svc.my-namespace.svc.cluster.local
Testing
Linked Issues
.:53
block via *.override keys incoredns-custom
ConfigMap #7639User-Facing Change
Further Comments