Open Subetov opened 6 months ago
It’s expect to. There haven’t been any changes I can think of that would prevent it, but it hasn’t been tested.
It looks it doesn't:
CoreDNS-1.11.3 linux/amd64, go1.21.10,
.:53 {
errors
health {
lameduck 5s
}
ready
log
debug
kubernetes cluster.kubernetes { ## This one works
endpoint https://endpoint.example.com
kubeconfig ./kubeconfig testcontext
fallthrough in-addr.arpa ip6.arpa
}
kubernetai cluster.kubernetai { ## This one doesn't work
endpoint https://endpoint.example.com
kubeconfig ./kubeconfig testcontext
fallthrough in-addr.arpa ip6.arpa
}
forward . /etc/resolv.conf
...
The 'kubernetes' plugin works as espected, but 'kubernetai' doesn't work returning
[INFO] 127.0.0.1:43785 - 25714 "A IN origin.video.svc.cluster.kubernetes. udp 76 false 1232" NOERROR qr,aa,rd 104 0.000346972s
[INFO] 127.0.0.1:49382 - 61026 "A IN origin.video.svc.cluster.kubernetai. udp 76 false 1232" NXDOMAIN qr,rd,ra 128 0.168981812s
Thanks
It looks it doesn't: ... Thanks
I've rebuild CoreDNS using latest commit (https://github.com/coredns/coredns/commit/621ffde538e57772783f9e4a0df590d2f0d71beb) and it helps:
...
kubernetes cluster.kubernetes { ## kubernetes plugin: works
endpoint https://endpoint.example.com
kubeconfig ./kubeconfig testcontext
fallthrough in-addr.arpa ip6.arpa
}
kubernetai cluster.kubernetai { ## kubernetai plugin: works
endpoint https://endpoint.example.com
kubeconfig ./kubeconfig testcontext
fallthrough in-addr.arpa ip6.arpa
}
kubernetai cluster.kubernetai2 { ## kubernetai 2nd plugin: works
endpoint https://endpoint.example.com
kubeconfig ./kubeconfig testcontext
fallthrough in-addr.arpa ip6.arpa
}
...
[INFO] 127.0.0.1:48214 - 36487 "A IN origin.video.svc.cluster.kubernetes. udp 76 false 1232" NOERROR qr,aa,rd 104 0.000301923s
[INFO] 127.0.0.1:59248 - 3637 "A IN origin.video.svc.cluster.kubernetai. udp 76 false 1232" NOERROR qr,aa,rd 104 0.000279854s
[INFO] 127.0.0.1:55238 - 51214 "A IN origin.video.svc.cluster.kubernetai2. udp 77 false 1232" NOERROR qr,aa,rd 106 0.000309467s
Does Kubernetai plugin work with CoreDNS v1.11.1 (latest) ?
Resolving doesn't work for some reason. Same configuration works well with CoreDNS-1.8.0
Thanks.