Remove prefixed spaces in code environment

pull/29748/head
Jacob Valdemar 2021-09-19 17:55:11 +02:00 committed by GitHub
parent 0a4887ebde
commit 6b610b8e33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 10 deletions

View File

@ -166,11 +166,10 @@ Also calling `kubeadm upgrade plan` and upgrading the CNI provider plugin is no
### Upgrade kubelet and kubectl ### Upgrade kubelet and kubectl
- Upgrade the kubelet and kubectl - Upgrade the kubelet and kubectl:
{{< tabs name="k8s_install_kubelet" >}} {{< tabs name="k8s_kubelet_and_kubectl" >}}
{{< tab name="Ubuntu, Debian or HypriotOS" >}} {{% tab name="Ubuntu, Debian or HypriotOS" %}}
<pre>
# replace x in {{< skew latestVersion >}}.x-00 with the latest patch version # replace x in {{< skew latestVersion >}}.x-00 with the latest patch version
apt-mark unhold kubelet kubectl && \ apt-mark unhold kubelet kubectl && \
apt-get update && apt-get install -y kubelet={{< skew latestVersion >}}.x-00 kubectl={{< skew latestVersion >}}.x-00 && \ apt-get update && apt-get install -y kubelet={{< skew latestVersion >}}.x-00 kubectl={{< skew latestVersion >}}.x-00 && \
@ -179,14 +178,11 @@ Also calling `kubeadm upgrade plan` and upgrading the CNI provider plugin is no
# since apt-get version 1.1 you can also use the following method # since apt-get version 1.1 you can also use the following method
apt-get update && \ apt-get update && \
apt-get install -y --allow-change-held-packages kubelet={{< skew latestVersion >}}.x-00 kubectl={{< skew latestVersion >}}.x-00 apt-get install -y --allow-change-held-packages kubelet={{< skew latestVersion >}}.x-00 kubectl={{< skew latestVersion >}}.x-00
</pre> {{% /tab %}}
{{< /tab >}} {{% tab name="CentOS, RHEL or Fedora" %}}
{{< tab name="CentOS, RHEL or Fedora" >}}
<pre>
# replace x in {{< skew latestVersion >}}.x-0 with the latest patch version # replace x in {{< skew latestVersion >}}.x-0 with the latest patch version
yum install -y kubelet-{{< skew latestVersion >}}.x-0 kubectl-{{< skew latestVersion >}}.x-0 --disableexcludes=kubernetes yum install -y kubelet-{{< skew latestVersion >}}.x-0 kubectl-{{< skew latestVersion >}}.x-0 --disableexcludes=kubernetes
</pre> {{% /tab %}}
{{< /tab >}}
{{< /tabs >}} {{< /tabs >}}
- Restart the kubelet: - Restart the kubelet: