Skip to content

Commit 76f3618

Browse files
authored
Merge pull request #49681 from my-git9/np-28558
[zh-cn] sync cpu-management-policies.md
2 parents 3b70f96 + ee5c6b9 commit 76f3618

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

content/zh-cn/docs/tasks/administer-cluster/cpu-management-policies.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ Once the feature gate is enabled, follow the steps below to configure the [CPU m
100100
这个能力还需要容器运行时的支持。
101101

102102
<!--
103-
### Configuration
103+
## Configuration
104104
105105
The CPU Manager policy is set with the `--cpu-manager-policy` kubelet
106106
flag or the `cpuManagerPolicy` field in [KubeletConfiguration](/docs/reference/config-api/kubelet-config.v1beta1/).
107107
There are two supported policies:
108108
-->
109-
### 配置 {#configuration}
109+
## 配置 {#configuration}
110110

111111
CPU 管理策略通过 kubelet 参数 `--cpu-manager-policy`
112112
[KubeletConfiguration](/zh-cn/docs/reference/config-api/kubelet-config.v1beta1/)
@@ -160,13 +160,13 @@ gate for each individual option.
160160
不同于 Kubernetes 标准,这里是由这些特性门控来管控选项组,因为为每个单独选项都添加一个特性门控过于繁琐。
161161

162162
<!--
163-
### Changing the CPU Manager Policy
163+
## Changing the CPU Manager Policy
164164
165165
Since the CPU manager policy can only be applied when kubelet spawns new pods, simply changing from
166166
"none" to "static" won't apply to existing pods. So in order to properly change the CPU manager
167167
policy on a node, perform the following steps:
168168
-->
169-
### 更改 CPU 管理器策略 {#changing-the-cpu-manager-policy}
169+
## 更改 CPU 管理器策略 {#changing-the-cpu-manager-policy}
170170

171171
由于 CPU 管理器策略只能在 kubelet 生成新 Pod 时应用,所以简单地从 "none" 更改为 "static"
172172
将不会对现有的 Pod 起作用。
@@ -209,16 +209,16 @@ state file `cpu_manager_state` in the kubelet root directory.
209209
{{< /note >}}
210210

211211
<!--
212-
#### `none` policy configuration
212+
### `none` policy configuration
213213
214214
This policy has no extra configuration items.
215215
-->
216-
#### `none` 策略配置
216+
### `none` 策略配置
217217

218218
该策略没有额外的配置项。
219219

220220
<!--
221-
#### `static` policy configuration
221+
### `static` policy configuration
222222
223223
This policy manages a shared pool of CPUs that initially contains all CPUs in the
224224
node. The amount of exclusively allocatable CPUs is equal to the total
@@ -234,7 +234,7 @@ CPU `requests` also run on CPUs in the shared pool. Only containers that are
234234
both part of a `Guaranteed` pod and have integer CPU `requests` are assigned
235235
exclusive CPUs.
236236
--->
237-
#### `static` 策略配置
237+
### `static` 策略配置
238238

239239
此策略管理一个 CPU 共享池,该共享池最初包含节点上所有的 CPU 资源。
240240
可独占性 CPU 资源数量等于节点的 CPU 总量减去通过 kubelet `--kube-reserved``--system-reserved`
@@ -260,7 +260,7 @@ pool to become empty.
260260
{{< /note >}}
261261

262262
<!--
263-
#### Static policy options {#cpu-policy-static--options}
263+
### Static policy options {#cpu-policy-static--options}
264264
265265
You can toggle groups of options on and off based upon their maturity level
266266
using the following feature gates:
@@ -276,7 +276,7 @@ The following policy options exist for the static `CPUManager` policy:
276276
* `strict-cpu-reservation` (alpha, hidden by default) (1.32 or higher)
277277
* `prefer-align-cpus-by-uncorecache` (alpha, hidden by default) (1.32 or higher)
278278
-->
279-
#### Static 策略选项 {#cpu-policy-static--options}
279+
### Static 策略选项 {#cpu-policy-static--options}
280280

281281
你可以使用以下特性门控根据成熟度级别打开或关闭选项组:
282282
* `CPUManagerPolicyBetaOptions` 默认启用。禁用以隐藏 beta 级选项。

0 commit comments

Comments
 (0)