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
Feature request: support zone transfers in Kubernetes middleware #660
Comments
[ Quoting <notifications@github.com> in "[coredns/coredns] Feature request: ..." ]
As a Kubernetes cluster operator, I want to perform zone transfers of cluster.local, or whatever cluster domain is otherwise configured. This feature is not currently supported in CoreDNS-007, at this writing, the latest coredns version.
No true, this is not supported. I thought it would be pretty hard, but now that
I think about it should actually be pretty trivial.
The only nit is when to update the SOA's serial, i.e. how do we know something
has changed in the k8s service registration?
|
We have watches on all the K8s resources of interest. We can keep a serial number of some sort, or perhaps construct one out of the individual resource serial numbers. |
Ah didn't know we had watches. Then it should be relatively easy. For the
soa serial I would just use the current time truncated to uint32
On 5 May 2017 7:03 pm, "John Belamaric" <notifications@github.com> wrote:
We have watches on all the K8s resources of interest. We can keep a serial
number of some sort, or perhaps construct one out of the individual
resource serial numbers.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#660 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAVkWwl0vYTEdxS3wFvzZPOSzlGo_4E1ks5r22RugaJpZM4NSH9U>
.
|
But only change it when something comes across the watches? Or we don't care? |
Indeed. Otherwise we keep transferring the same data over and over.
…On 5 May 2017 7:22 pm, "John Belamaric" ***@***.***> wrote:
But only change it when something comes across the watches? Or we don't
care?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#660 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAVkW1sKJZzrXuqxwAASZloSnsVYkhdqks5r22jdgaJpZM4NSH9U>
.
|
Of course, sure. Do we support notifies today? Given the frequency of changes that could happen in K8s that would be a concern. |
Yes, we can do notifies, code is in the file middleware. There is no generic notify layer/middleware that handles though - might also not be worth the complexity. |
I might actually be tempted to work on this (modulo 8 other PRs) |
tentatively for 009, but maybe 010 would be better |
I've been playing with some code today, far from finished, but I should have some tangible within a few days. |
See #963 which shows the gist of it. Interesting questions this poses: We may be able to put this in the secondary middleware and use the same tricks as we did for autopath and federation? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
this is happening in #1259 (and possible followup PRs) |
Done in #1259! There is still follow up on how to handle records that are provided via the |
As a Kubernetes cluster operator, I want to perform zone transfers of cluster.local, or whatever cluster domain is otherwise configured. This feature is not currently supported in CoreDNS-007, at this writing, the latest coredns version.
Context
Kubernetes cluster version:
Pods running in my cluster
CoreDNS version:
Corefile
Consider this Corefile that configures the pod above
Prove DNS works in the cluster:
Attempt a zone transfer
Observe the same failure report in the coredns container logs
The text was updated successfully, but these errors were encountered: