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
Upgrade to 1.16.x failed if CoreDNS was previously deployed with self-built image #84326
Comments
/sig cluster-lifecycle |
The error came from vendor/github.com/coredns/corefile-migration/migration/migrate.go It seems you should mention this issue on coredns project |
@tedyu True. Will notify them also. |
/cc @rajansandeep |
/assign wdyt? /cc @chrisohaver @neolit123 |
Yes. IMO, the warnings should be phrased like "CoreDNS configuration migration will not occur: reason"... so that a user expects the config migration will not be done. |
/area kubeadm |
SGTM |
I think the best we can do here is to allow the upgrade to pass, but this will, in most practical cases, result in a cluster without a functioning DNS. The most common practical use-case for using a self built image of CoreDNS is to use external plugins. During the kubeadm upgrade, CoreDNS will be replaced with a stock release version of CoreDNS. When that new version of CoreDNS starts, it will not be able to load the existing Corefile's external plugins, and exit. ... or, we could finish the upgrade, leaving the existing CoreDNS deployment untouched, which I think works better. |
@chrisohaver Yea, it's kinda strong words that "Upgrade passed correctly". Probably, I think the best solution will be to make possible skip Corefile migration and make kubeadm finish the upgrade without Corefile changes. Guys that using custom images of CoreDNS should care about Corefile for new version by themselves, IMO. |
Yes, I think that would work best... |
What happened:
Upgrade using kubeadm failed because of CoreDNS migration enchancement
What you expected to happen:
Upgrade passed correctly
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Logs part without ignoring preflight:
Logs part with ignoring preflight:
Environment:
kubectl version
):OpenStack
cat /etc/os-release
):uname -a
):Linux kube-node-01 4.15.0-51-generic #55-Ubuntu SMP Wed May 15 14:27:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Kubeadm
The text was updated successfully, but these errors were encountered: