Skip to content

Commit 1fffe9f

Browse files
authored
Merge pull request #26235 from ydFu/update-runtime-class
[zh] Update runtime-class.md
2 parents b74478c + 465c4fa commit 1fffe9f

File tree

1 file changed

+12
-22
lines changed

1 file changed

+12
-22
lines changed

content/zh/docs/concepts/containers/runtime-class.md

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,16 @@ but with different settings.
5353

5454
<!--
5555
## Setup
56-
57-
Ensure the RuntimeClass feature gate is enabled (it is by default). See [Feature
58-
Gates](/docs/reference/command-line-tools-reference/feature-gates/) for an explanation of enabling
59-
feature gates. The `RuntimeClass` feature gate must be enabled on API server _and_ kubelets.
6056
-->
61-
## 设置 {#setup}
6257

63-
确保 RuntimeClass 特性开关处于开启状态(默认为开启状态)。
64-
关于特性开关的详细介绍,请参阅
65-
[特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates/)
66-
`RuntimeClass` 特性开关必须在 API 服务器和 kubelet 端同时开启。
58+
## 设置 {#setup}
6759

6860
<!--
69-
1. Configure the CRI implementation on nodes (runtime dependent).
70-
2. Create the corresponding RuntimeClass resources.
61+
1. Configure the CRI implementation on nodes (runtime dependent)
62+
2. Create the corresponding RuntimeClass resources
7163
-->
72-
1. 在节点上配置 CRI 的实现(取决于所选用的运行时)
73-
2. 创建相应的 RuntimeClass 资源
64+
1. 在节点上配置 CRI 的实现(取决于所选用的运行时)
65+
2. 创建相应的 RuntimeClass 资源
7466

7567
<!--
7668
### 1. Configure the CRI implementation on nodes
@@ -246,16 +238,14 @@ See CRI-O's [config documentation](https://raw.githubusercontent.com/cri-o/cri-o
246238
{{< feature-state for_k8s_version="v1.16" state="beta" >}}
247239
248240
<!--
249-
As of Kubernetes v1.16, RuntimeClass includes support for heterogenous clusters through its
250-
`scheduling` fields. Through the use of these fields, you can ensure that pods running with this
251-
RuntimeClass are scheduled to nodes that support it. To use the scheduling support, you must have
252-
the [RuntimeClass admission controller][] enabled (the default, as of 1.16).
241+
By specifying the `scheduling` field for a RuntimeClass, you can set constraints to
242+
ensure that Pods running with this RuntimeClass are scheduled to nodes that support it.
243+
If `scheduling` is not set, this RuntimeClass is assumed to be supported by all nodes.
253244
-->
254-
在 Kubernetes v1.16 版本里,RuntimeClass 特性引入了 `scheduling` 字段来支持异构集群。
255-
通过该字段,可以确保 pod 被调度到支持指定运行时的节点上。
256-
该调度支持,需要确保
257-
[RuntimeClass 准入控制器](/zh/docs/reference/access-authn-authz/admission-controllers/#runtimeclass)
258-
处于开启状态(1.16 版本默认开启)。
245+
246+
通过为 RuntimeClass 指定 `scheduling` 字段,
247+
你可以通过设置约束,确保运行该 RuntimeClass 的 Pod 被调度到支持该 RuntimeClass 的节点上。
248+
如果未设置 `scheduling`,则假定所有节点均支持此 RuntimeClass 。
259249
260250
<!--
261251
To ensure pods land on nodes supporting a specific RuntimeClass, that set of nodes should have a

0 commit comments

Comments
 (0)