Skip to content

Commit cdc1bdd

Browse files
committed
sync kubeadm-upgrade topology-manager security-context
1 parent 31135f6 commit cdc1bdd

3 files changed

Lines changed: 58 additions & 2 deletions

File tree

content/zh-cn/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
208209
sudo yum list --showduplicates kubeadm --disableexcludes=kubernetes
209210
```
210211
-->
212+
对于使用 DNF 的系统:
211213
```shell
212214
# 在列表中查找最新的 {{< skew currentVersion >}} 版本
213215
# 它看起来应该是 {{< skew currentVersion >}}.x-*,其中 x 是最新的补丁版本
214216
sudo 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 >}}

content/zh-cn/docs/tasks/administer-cluster/topology-manager.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ resource allocation decisions.
100100
取决于所配置的策略,所选建议可用来决定节点接受或拒绝 Pod。
101101
之后,建议会被存储在拓扑管理器中,供**建议提供者**在作资源分配决策时使用。
102102

103+
<!--
104+
The flow can be seen in the following diagram.
105+
106+
![topology_manager_flow](/images/docs/topology-manager-flow.png)
107+
-->
108+
该流程可见于下图。
109+
110+
![topology_manager_flow](/images/docs/topology-manager-flow.png)
111+
103112
<!--
104113
## Windows Support
105114
-->

content/zh-cn/docs/tasks/configure-pod-container/security-context.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Check the process identity:
313313
检查进程身份:
314314

315315
```shell
316-
$ id
316+
id
317317
```
318318

319319
<!--
@@ -338,7 +338,7 @@ Check the `/etc/group` in the container image:
338338
检查容器镜像中的 `/etc/group`
339339

340340
```shell
341-
$ cat /etc/group
341+
cat /etc/group
342342
```
343343

344344
<!--

0 commit comments

Comments
 (0)