@@ -202,18 +202,35 @@ sudo apt-cache madison kubeadm
202202{{% tab name="CentOS、RHEL 或 Fedora" %}}
203203
204204<!--
205+ For systems with DNF:
205206```shell
206207# Find the latest {{< skew currentVersion >}} version in the list.
207208# It should look like {{< skew currentVersion >}}.x-*, where x is the latest patch.
208209sudo yum list --showduplicates kubeadm --disableexcludes=kubernetes
209210```
210211-->
212+ 对于使用 DNF 的系统:
211213``` shell
212214# 在列表中查找最新的 {{< skew currentVersion >}} 版本
213215# 它看起来应该是 {{< skew currentVersion >}}.x-*,其中 x 是最新的补丁版本
214216sudo yum list --showduplicates kubeadm --disableexcludes=kubernetes
215217```
216218
219+ <!--
220+ For systems with DNF5:
221+ ```shell
222+ # Find the latest {{< skew currentVersion >}} version in the list.
223+ # It should look like {{< skew currentVersion >}}.x-*, where x is the latest patch.
224+ sudo yum list --showduplicates kubeadm --setopt=disable_excludes=kubernetes
225+ ```
226+ -->
227+ 对于使用 DNF5 的系统:
228+ ``` shell
229+ # 在列表中查找最新的 {{< skew currentVersion >}} 版本
230+ # 它看起来应该是 {{< skew currentVersion >}}.x-*,其中 x 是最新的补丁版本
231+ sudo yum list --showduplicates kubeadm --setopt=disable_excludes=kubernetes
232+ ```
233+
217234{{% /tab %}}
218235{{< /tabs >}}
219236
@@ -273,15 +290,30 @@ Pick a control plane node that you wish to upgrade first. It must have the `/etc
273290 {{% tab name="CentOS、RHEL 或 Fedora" %}}
274291
275292 <!--
293+ For systems with DNF:
276294 ```shell
277295 # replace x in {{< skew currentVersion >}}.x-* with the latest patch version
278296 sudo yum install -y kubeadm-'{{< skew currentVersion >}}.x-*' --disableexcludes=kubernetes
279297 ```
280298 -->
299+ 对于使用 DNF 的系统:
281300 ``` shell
282301 # 用最新的补丁版本号替换 {{< skew currentVersion >}}.x-* 中的 x
283302 sudo yum install -y kubeadm-' {{< skew currentVersion >}}.x-*' --disableexcludes=kubernetes
284303 ```
304+
305+ <!--
306+ For systems with DNF5:
307+ ```shell
308+ # replace x in {{< skew currentVersion >}}.x-* with the latest patch version
309+ sudo yum install -y kubeadm-'{{< skew currentVersion >}}.x-*' --setopt=disable_excludes=kubernetes
310+ ```
311+ -->
312+ 对于使用 DNF5 的系统:
313+ ``` shell
314+ # 用最新的补丁版本号替换 {{< skew currentVersion >}}.x-* 中的 x
315+ sudo yum install -y kubeadm-' {{< skew currentVersion >}}.x-*' --setopt=disable_excludes=kubernetes
316+ ```
285317
286318 {{% /tab %}}
287319 {{< /tabs >}}
@@ -468,15 +500,30 @@ kubectl drain <node-to-drain> --ignore-daemonsets
468500 {{% tab name="CentOS、RHEL 或 Fedora" %}}
469501
470502 <!--
503+ For systems with DNF:
471504 ```shell
472505 # replace x in {{< skew currentVersion >}}.x-* with the latest patch version
473506 sudo yum install -y kubelet-'{{< skew currentVersion >}}.x-*' kubectl-'{{< skew currentVersion >}}.x-*' --disableexcludes=kubernetes
474507 ```
475508 -->
509+ 对于使用 DNF 的系统:
476510 ``` shell
477511 # 用最新的补丁版本号替换 {{< skew currentVersion >}}.x-* 中的 x
478512 sudo yum install -y kubelet-' {{< skew currentVersion >}}.x-*' kubectl-' {{< skew currentVersion >}}.x-*' --disableexcludes=kubernetes
479513 ```
514+
515+ <!--
516+ For systems with DNF5:
517+ ```shell
518+ # replace x in {{< skew currentVersion >}}.x-* with the latest patch version
519+ sudo yum install -y kubelet-'{{< skew currentVersion >}}.x-*' kubectl-'{{< skew currentVersion >}}.x-*' --setopt=disable_excludes=kubernetes
520+ ```
521+ -->
522+ 对于使用 DNF5 的系统:
523+ ``` shell
524+ # 用最新的补丁版本号替换 {{< skew currentVersion >}}.x-* 中的 x
525+ sudo yum install -y kubelet-' {{< skew currentVersion >}}.x-*' kubectl-' {{< skew currentVersion >}}.x-*' --setopt=disable_excludes=kubernetes
526+ ```
480527
481528 {{% /tab %}}
482529 {{< /tabs >}}
0 commit comments