-
Notifications
You must be signed in to change notification settings - Fork 716
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
kubeadm upgrade node
seems to ignore UpgradeConfiguration.node.skipPhases
#3142
Comments
If you specify the |
we don't have plans to store upgradeconfiguration in the cluster. only clusterconfiguration.
@SataQiu could there be a bug that skipPhases from upgradeconfiguration doesn't get propagated correctly? |
/assign |
This is a bug, I will submit a PR to fix it. # kubeadm --config /tmp/kubeadm-upgrade.yaml upgrade node --skip-phases addon/kube-proxy
[upgrade] Reading configuration from the "kubeadm-config" ConfigMap in namespace "kube-system"...
[upgrade] Use 'kubeadm init phase upload-config --config your-config.yaml' to re-upload it.
...
[upgrade/kubelet-config] The kubelet configuration for this node was successfully upgraded!
[addons] Applied essential addon: CoreDNS |
will fixed by kubernetes/kubernetes#129452 PTAL @neolit123 @nadiamoe |
@SataQiu i can send the cherry pick prs. |
Huge thanks for the light-speed response folks! |
Welcome to submit the cherry pick prs if you have time @neolit123 |
@SataQiu please LGTM kubernetes/kubernetes#129454 as well |
What keywords did you search in kubeadm issues before filing this one?
Versions
kubeadm version (use
kubeadm version
):Environment:
kubectl version
):What happened?
I have a simple config like this:
However, when I run
kubeadm --config /tmp/kubeadm-upgrade.yaml upgrade node
, the command does not seem to be picking upskipPhases
.Running
kubeadm --config /etc/kubernetes/kubeadm.yaml upgrade node --skip-phases addon/kube-proxy
does work.Adding a different option, like
dryRun: true
to the yaml also works, which seems to indicate this file is actually being read:I cannot help but pay attention at:
Which may hint that my
UpgradeConfiguration
needs to be in-cluster,kubeadm init phase upload-config all
does not seem to like it:What you expected to happen?
kubeadm upgrade node
should have honoredUpgradeConfiguration.node.skipPhases
and not deployed kube-proxy.How to reproduce it (as minimally and precisely as possible)?
See above.
Anything else we need to know?
The text was updated successfully, but these errors were encountered: