-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Fix bugs about kubeadm upgrading. #12809
Conversation
It will lead to the following error if using `yum upgrade -y kubeadm --disableexcludes=kubernetes` command: <https://serverfault.com/questions/943696/fatal-unexpected-error-when-reading-kubeadm-config-configmap-clusterconfigurat> Running `yum upgrade -y kubeadm --disableexcludes=kubernetes` command will upgrade the kubeadm to v1.13 but kubeadm v1.13 could not upgrade the v1.12 kubeadm cluster.
Deploy preview for kubernetes-io-master-staging ready! Built with commit 7a424f3 https://deploy-preview-12809--kubernetes-io-master-staging.netlify.com |
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.
thanks for the PR @Mr-Linus
added one minor comment.
/sig cluster-lifecycle
@@ -44,7 +44,7 @@ This page explains how to upgrade a Kubernetes cluster created with `kubeadm` fr | |||
apt-mark hold kubeadm | |||
{{% /tab %}} | |||
{{% tab name="CentOS, RHEL or Fedora" %}} | |||
yum upgrade -y kubeadm --disableexcludes=kubernetes | |||
yum upgrade -y kubeadm-1.12.5 --disableexcludes=kubernetes |
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.
instead of pinning a PATCH version, this can be done:
# replace "x" with the latest patch version
yum upgrade -y kubeadm-1.12.x --disableexcludes=kubernetes
similar has to be done for this section:
Upgrade the Kubernetes package version on each $NODE node by running the Linux package manager for your distribution:
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.
Finished! Thank you for your reminder!
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.
👍
/lgtm
ping @xiangpeng |
Checked the updates on : https://deploy-preview-12809--kubernetes-io-master-staging.netlify.com/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-12/ /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Rajakavitha1 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Fix bug about kubeadm upgrading It will lead to the following error if using `yum upgrade -y kubeadm --disableexcludes=kubernetes` command: <https://serverfault.com/questions/943696/fatal-unexpected-error-when-reading-kubeadm-config-configmap-clusterconfigurat> Running `yum upgrade -y kubeadm --disableexcludes=kubernetes` command will upgrade the kubeadm to v1.13 but kubeadm v1.13 could not upgrade the v1.12 kubeadm cluster. * Update kubeadm-upgrade-1-12.md * Update kubeadm-upgrade-1-12.md * Update kubeadm-upgrade-1-12.md
* Fix bug about kubeadm upgrading It will lead to the following error if using `yum upgrade -y kubeadm --disableexcludes=kubernetes` command: <https://serverfault.com/questions/943696/fatal-unexpected-error-when-reading-kubeadm-config-configmap-clusterconfigurat> Running `yum upgrade -y kubeadm --disableexcludes=kubernetes` command will upgrade the kubeadm to v1.13 but kubeadm v1.13 could not upgrade the v1.12 kubeadm cluster. * Update kubeadm-upgrade-1-12.md * Update kubeadm-upgrade-1-12.md * Update kubeadm-upgrade-1-12.md
* Fix bug about kubeadm upgrading It will lead to the following error if using `yum upgrade -y kubeadm --disableexcludes=kubernetes` command: <https://serverfault.com/questions/943696/fatal-unexpected-error-when-reading-kubeadm-config-configmap-clusterconfigurat> Running `yum upgrade -y kubeadm --disableexcludes=kubernetes` command will upgrade the kubeadm to v1.13 but kubeadm v1.13 could not upgrade the v1.12 kubeadm cluster. * Update kubeadm-upgrade-1-12.md * Update kubeadm-upgrade-1-12.md * Update kubeadm-upgrade-1-12.md
It will lead to the following error if using
yum upgrade -y kubeadm --disableexcludes=kubernetes
command:https://serverfault.com/questions/943696/fatal-unexpected-error-when-reading-kubeadm-config-configmap-clusterconfigurat
Running
yum upgrade -y kubeadm --disableexcludes=kubernetes
command will upgrade the kubeadm to v1.13, but kubeadm v1.13 could not upgrade the v1.11 kubeadm cluster.