kubernetes: Can't upgrade to 1.16.0: [ERROR CoreDNSUnsupportedPlugins]: there are unsupported plugins in the CoreDNS
kubeadm upgrade plan
[upgrade/config] Making sure the configuration is correct:
[upgrade/config] Reading configuration from the cluster...
[upgrade/config] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -oyaml'
[preflight] Running pre-flight checks.
[preflight] Some fatal errors occurred:
[ERROR CoreDNSUnsupportedPlugins]: there are unsupported plugins in the CoreDNS Corefile
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
Any ideas how to solve this?
kubectl get nodes -o wide
host1 Ready master 207d v1.16.0 10.10.0.10 <none> Ubuntu 18.04.3 LTS 4.15.0-64-generic docker://18.6.1
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 4
- Comments: 34 (25 by maintainers)
The preflight check is showing
CoreDNSUnsupportedPluginsdue to the presence of theproxyplugin, as it has been deprecated. Theforwardplugin is to be used in its place.If the
Corefileis the same as you’ve mentioned here, you can use the--ignore-preflight-errors=CoreDNSUnsupportedPluginswhile upgrading. Theproxyplugin will be replaced to useforwardautomatically.Thanks, Just to summarize, there are two issues raised here:
I think improving the message is fine or even enumerating which plugins.
Hosts is not currently supported by the corefile migration library. However, the presence of a plugin that is not supported by migration library should not be preventing the kubeadm upgrade from proceeding if you use the
--ignore-preflight-errors=CoreDNSUnsupportedPluginsflag, per comment above.