Make upgrade commands compatible with both repos
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>pull/42022/head
parent
fcadec411a
commit
f34d608b92
|
@ -68,7 +68,7 @@ Find the latest patch release for Kubernetes {{< skew currentVersion >}} using t
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Find the latest {{< skew currentVersion >}} version in the list.
|
# Find the latest {{< skew currentVersion >}} version in the list.
|
||||||
# It should look like {{< skew currentVersion >}}.x-00, where x is the latest patch.
|
# It should look like {{< skew currentVersion >}}.x-*, where x is the latest patch.
|
||||||
apt update
|
apt update
|
||||||
apt-cache madison kubeadm
|
apt-cache madison kubeadm
|
||||||
```
|
```
|
||||||
|
@ -78,7 +78,7 @@ apt-cache madison kubeadm
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Find the latest {{< skew currentVersion >}} version in the list.
|
# Find the latest {{< skew currentVersion >}} version in the list.
|
||||||
# It should look like {{< skew currentVersion >}}.x-0, where x is the latest patch.
|
# It should look like {{< skew currentVersion >}}.x-*, where x is the latest patch.
|
||||||
yum list --showduplicates kubeadm --disableexcludes=kubernetes
|
yum list --showduplicates kubeadm --disableexcludes=kubernetes
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -100,9 +100,9 @@ Pick a control plane node that you wish to upgrade first. It must have the `/etc
|
||||||
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
|
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# replace x in {{< skew currentVersion >}}.x-00 with the latest patch version
|
# replace x in {{< skew currentVersion >}}.x-* with the latest patch version
|
||||||
apt-mark unhold kubeadm && \
|
apt-mark unhold kubeadm && \
|
||||||
apt-get update && apt-get install -y kubeadm={{< skew currentVersion >}}.x-00 && \
|
apt-get update && apt-get install -y kubeadm='{{< skew currentVersion >}}.x-*' && \
|
||||||
apt-mark hold kubeadm
|
apt-mark hold kubeadm
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -110,8 +110,8 @@ Pick a control plane node that you wish to upgrade first. It must have the `/etc
|
||||||
{{% tab name="CentOS, RHEL or Fedora" %}}
|
{{% tab name="CentOS, RHEL or Fedora" %}}
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# replace x in {{< skew currentVersion >}}.x-0 with the latest patch version
|
# replace x in {{< skew currentVersion >}}.x-* with the latest patch version
|
||||||
yum install -y kubeadm-{{< skew currentVersion >}}.x-0 --disableexcludes=kubernetes
|
yum install -y kubeadm-'{{< skew currentVersion >}}.x-*' --disableexcludes=kubernetes
|
||||||
```
|
```
|
||||||
|
|
||||||
{{% /tab %}}
|
{{% /tab %}}
|
||||||
|
@ -214,9 +214,9 @@ kubectl drain <node-to-drain> --ignore-daemonsets
|
||||||
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
|
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# replace x in {{< skew currentVersion >}}.x-00 with the latest patch version
|
# replace x in {{< skew currentVersion >}}.x-* with the latest patch version
|
||||||
apt-mark unhold kubelet kubectl && \
|
apt-mark unhold kubelet kubectl && \
|
||||||
apt-get update && apt-get install -y kubelet={{< skew currentVersion >}}.x-00 kubectl={{< skew currentVersion >}}.x-00 && \
|
apt-get update && apt-get install -y kubelet='{{< skew currentVersion >}}.x-*' kubectl='{{< skew currentVersion >}}.x-*' && \
|
||||||
apt-mark hold kubelet kubectl
|
apt-mark hold kubelet kubectl
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -224,8 +224,8 @@ kubectl drain <node-to-drain> --ignore-daemonsets
|
||||||
{{% tab name="CentOS, RHEL or Fedora" %}}
|
{{% tab name="CentOS, RHEL or Fedora" %}}
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# replace x in {{< skew currentVersion >}}.x-0 with the latest patch version
|
# replace x in {{< skew currentVersion >}}.x-* with the latest patch version
|
||||||
yum install -y kubelet-{{< skew currentVersion >}}.x-0 kubectl-{{< skew currentVersion >}}.x-0 --disableexcludes=kubernetes
|
yum install -y kubelet-'{{< skew currentVersion >}}.x-*' kubectl-'{{< skew currentVersion >}}.x-*' --disableexcludes=kubernetes
|
||||||
```
|
```
|
||||||
|
|
||||||
{{% /tab %}}
|
{{% /tab %}}
|
||||||
|
|
|
@ -33,16 +33,16 @@ Upgrade kubeadm:
|
||||||
{{< tabs name="k8s_install_kubeadm_worker_nodes" >}}
|
{{< tabs name="k8s_install_kubeadm_worker_nodes" >}}
|
||||||
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
|
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
|
||||||
```shell
|
```shell
|
||||||
# replace x in {{< skew currentVersion >}}.x-00 with the latest patch version
|
# replace x in {{< skew currentVersion >}}.x-* with the latest patch version
|
||||||
apt-mark unhold kubeadm && \
|
apt-mark unhold kubeadm && \
|
||||||
apt-get update && apt-get install -y kubeadm={{< skew currentVersion >}}.x-00 && \
|
apt-get update && apt-get install -y kubeadm='{{< skew currentVersion >}}.x-*' && \
|
||||||
apt-mark hold kubeadm
|
apt-mark hold kubeadm
|
||||||
```
|
```
|
||||||
{{% /tab %}}
|
{{% /tab %}}
|
||||||
{{% tab name="CentOS, RHEL or Fedora" %}}
|
{{% tab name="CentOS, RHEL or Fedora" %}}
|
||||||
```shell
|
```shell
|
||||||
# replace x in {{< skew currentVersion >}}.x-0 with the latest patch version
|
# replace x in {{< skew currentVersion >}}.x- with the latest patch version
|
||||||
yum install -y kubeadm-{{< skew currentVersion >}}.x-0 --disableexcludes=kubernetes
|
yum install -y kubeadm-'{{< skew currentVersion >}}.x-*' --disableexcludes=kubernetes
|
||||||
```
|
```
|
||||||
{{% /tab %}}
|
{{% /tab %}}
|
||||||
{{< /tabs >}}
|
{{< /tabs >}}
|
||||||
|
@ -71,16 +71,16 @@ kubectl drain <node-to-drain> --ignore-daemonsets
|
||||||
{{< tabs name="k8s_kubelet_and_kubectl" >}}
|
{{< tabs name="k8s_kubelet_and_kubectl" >}}
|
||||||
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
|
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
|
||||||
```shell
|
```shell
|
||||||
# replace x in {{< skew currentVersion >}}.x-00 with the latest patch version
|
# replace x in {{< skew currentVersion >}}.x-* with the latest patch version
|
||||||
apt-mark unhold kubelet kubectl && \
|
apt-mark unhold kubelet kubectl && \
|
||||||
apt-get update && apt-get install -y kubelet={{< skew currentVersion >}}.x-00 kubectl={{< skew currentVersion >}}.x-00 && \
|
apt-get update && apt-get install -y kubelet='{{< skew currentVersion >}}.x-*' kubectl='{{< skew currentVersion >}}.x-*' && \
|
||||||
apt-mark hold kubelet kubectl
|
apt-mark hold kubelet kubectl
|
||||||
```
|
```
|
||||||
{{% /tab %}}
|
{{% /tab %}}
|
||||||
{{% tab name="CentOS, RHEL or Fedora" %}}
|
{{% tab name="CentOS, RHEL or Fedora" %}}
|
||||||
```shell
|
```shell
|
||||||
# replace x in {{< skew currentVersion >}}.x-0 with the latest patch version
|
# replace x in {{< skew currentVersion >}}.x-* with the latest patch version
|
||||||
yum install -y kubelet-{{< skew currentVersion >}}.x-0 kubectl-{{< skew currentVersion >}}.x-0 --disableexcludes=kubernetes
|
yum install -y kubelet-'{{< skew currentVersion >}}.x-*' kubectl-'{{< skew currentVersion >}}.x-*' --disableexcludes=kubernetes
|
||||||
```
|
```
|
||||||
{{% /tab %}}
|
{{% /tab %}}
|
||||||
{{< /tabs >}}
|
{{< /tabs >}}
|
||||||
|
|
Loading…
Reference in New Issue