-
Notifications
You must be signed in to change notification settings - Fork 715
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 apply phases #1318
Comments
yes, there is currently no way to skip phases during upgrade. this feature needs discussion. /assign @timothysc @fabriziopandini
you can skip both and then apply the dns addon manually. |
Thanks for taking a look. Also, I think if I had a choice, phase control during an upgrade would be handled through the config file/kubeadm-config configmap so as to be something inherent to the existing cluster, rather than a flag that has to be remembered at upgrade time. |
@MarkDeckert you can skip only the proxy addon by using First considerations on this topic, that deserve discussion at sig-level and commitment for execution:
|
Having the ability to skip kube-proxy re-installing during an upgrade is required. I am using kube-router to manage my services and network policies. When running a kubeadm upgrade once kube-proxy is reinstalled the cluster is unusable until a |
Let's discuss during the next call. |
There is a hackish workaround for kube-router users: Create a kube-proxy daemonset and use
During the upgrade of the first Kubernetes master node, it will fail on the final post-upgrade task in which the kube-proxy daemonset is updated with this error: If you are using automation to perform the upgrade, it will need to cope with this error. Upgrading additional Kubernetes master nodes with
|
We should promote upgrade to phase to allow the |
it's a matter of bandwidth for the release cycle and who can work on it. |
I'll work on reset phases this week, probably I'll be able to work on reset phase next week. |
Current plan is to re-evaluate execution of this item in the 1.16 timeframe. |
Maybe another use case for upgrade phases with immutable infrastructure to consider: #1511 (comment) |
Rif #1658, we should ensure that kubeadm-upgrade phases should allow atomic upgrade of etcd |
@pacoxu I was just wondering if you continue to improve this PR kubernetes/kubernetes#108767 ? Is there anything else that I can do to help? |
I may pick this up if I have time in v1.28. |
Is this likely to go in for 1.31? Noticed the related PRs haven't had much activity for a long time. Happy to help contribute if there's any help needed. |
as per the existing kubeadm maintainer roster bandwidth, unlikely. |
/reopen |
@SataQiu: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
FEATURE REQUEST
kubeadm init recently included a "--skip-phases" option for skipping a particular phase. However, kubeadm upgrade does not appear to have this option. This specifically causes issues when doing a kubeadm upgrade on a cluster that uses kube-router to replace the functionality of kube-proxy. Since upgrade will always redeploy kube-proxy, it will immediately begin altering iptables and/or ipvs underneath kube-router, and this can cause outages if the daemonset isn't deleted quickly enough.
Additionally (please ignore my ignorance if this is the case, as this is not the main issue) I should mention the documentation is not clear whether it's even possible to skip a particular addon. It appears --skip-phases addons will skip coredns as well, which would be undesireable.
Versions
1.13.0
(EDIT by neolit123:)
SUMMARY:
[WIP] Upgrade apply phase cleanup kubernetes#87715
cleaned up of EnforceRequirements kubernetes#87636
Cleanup apply data kubernetes#87638
proposal:
kubernetes/enhancements#1298
https://github.com/kubernetes/enhancements/tree/master/keps/sig-cluster-lifecycle/kubeadm/2501-kubeadm-phases-to-beta
"apply" phase naming and other ideas:
https://docs.google.com/document/d/1Nicy27rt9jm9tOzZ_MEcQsnmyOFl2ZB6k110aRblv2M/edit?usp=sharing
TODO:
kubeadm upgrade node/apply phase control-plane
addon
andpost-upgrade
phases forkubeadm upgrade node
command kubeadm: add addon and post-upgrade phases for 'kubeadm upgrade node' kubernetes#127242The text was updated successfully, but these errors were encountered: