Minor improvements on upgrade for kubeadm (#11540)
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>pull/11549/head
parent
6cab82306e
commit
eef6919e3d
|
@ -39,8 +39,9 @@ This page explains how to upgrade a Kubernetes cluster created with `kubeadm` fr
|
|||
|
||||
{{< tabs name="k8s_install" >}}
|
||||
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
|
||||
apt-get update
|
||||
apt-get upgrade -y kubeadm
|
||||
apt-mark unhold kubeadm && \
|
||||
apt-get update && apt-get upgrade -y kubeadm && \
|
||||
apt-mark hold kubeadm
|
||||
{{% /tab %}}
|
||||
{{% tab name="CentOS, RHEL or Fedora" %}}
|
||||
yum upgrade -y kubeadm --disableexcludes=kubernetes
|
||||
|
|
|
@ -39,8 +39,9 @@ This page explains how to upgrade a Kubernetes cluster created with `kubeadm` fr
|
|||
|
||||
{{< tabs name="k8s_install" >}}
|
||||
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
|
||||
apt-get update
|
||||
apt-get upgrade -y kubelet kubeadm
|
||||
apt-mark unhold kubelet kubeadm && \
|
||||
apt-get update && apt-get upgrade -y kubelet kubeadm && \
|
||||
apt-mark hold kubelet kubeadm
|
||||
{{% /tab %}}
|
||||
{{% tab name="CentOS, RHEL or Fedora" %}}
|
||||
yum upgrade -y kubeadm --disableexcludes=kubernetes
|
||||
|
|
|
@ -37,7 +37,7 @@ Upgrade `kubeadm` to the version that matches the version of Kubernetes that you
|
|||
|
||||
```shell
|
||||
apt-mark unhold kubeadm && \
|
||||
apt-get update && apt-get install -y kubeadm && \
|
||||
apt-get update && apt-get upgrade -y kubeadm && \
|
||||
apt-mark hold kubeadm
|
||||
```
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ Upgrade `kubeadm` to the version that matches the version of Kubernetes that you
|
|||
|
||||
```shell
|
||||
apt-mark unhold kubeadm && \
|
||||
apt-get update && apt-get install -y kubeadm && \
|
||||
apt-get update && apt-get upgrade -y kubeadm && \
|
||||
apt-mark hold kubeadm
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue