-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Update kubeadm upgrade instructions #44891
Conversation
draining needs to happen before kubeadm plan/upgrade
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @lichao127,
Thank you for your contribution.
adds sudo before apt commands so that all commands can be performed by a user with sudo privilege
This change has already been implemented by PR #44832, which was opened before this. So, i recommend that you to remove the content related to adding sudo privilege.
This reverts commit 79ecafb.
/sig cluster-lifecycle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR moves kubectl drain instructions before kubeadm plan, because the node must be cordoned before upgrading
can you elaborate why?
/triage needs-information |
@lichao127 When you have some time, could you kindly review the reviewer's query and provide a response? Appreciate it! |
The current version of doc has |
kubeadm does not manage non static pods, only static pods and their mirror pods at the apiserver. draining is done before kubelet upgrade because the kubelet manages all other pods and also generally draining and cordon is a kubelet upgrade requirement. |
If anything, I would think we would want the cordon after But the current instructions should be fine. Upgrading the Maybe it should also be noted that upgrading containerd (or whatever container runtime you are using) should be done between that |
this can be mentioned, yes |
attempting to gather the points so far:
|
no, same steps. |
In that case we should leave the draining step as-is. This doc mentions the container runtime upgrade:
It seems redundant to mention the cordon/uncordon for containerd upgrade here. Closing PR. |
This PR moves
kubectl drain
instructions beforekubeadm upgrade plan
andkubeadm upgrade apply
, because the node must be cordoned before upgrading (not after)