Minor improvements on upgrade for kubeadm (#11540)

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
pull/11549/head
Yuexiao Wang 2018-12-06 00:42:00 +08:00 committed by Kubernetes Prow Robot
parent 6cab82306e
commit eef6919e3d
4 changed files with 8 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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
```

View File

@ -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
```