@@ -100,13 +100,13 @@ Once the feature gate is enabled, follow the steps below to configure the [CPU m
100
100
这个能力还需要容器运行时的支持。
101
101
102
102
<!--
103
- ### Configuration
103
+ ## Configuration
104
104
105
105
The CPU Manager policy is set with the `--cpu-manager-policy` kubelet
106
106
flag or the `cpuManagerPolicy` field in [KubeletConfiguration](/docs/reference/config-api/kubelet-config.v1beta1/).
107
107
There are two supported policies:
108
108
-->
109
- ### 配置 {#configuration}
109
+ ## 配置 {#configuration}
110
110
111
111
CPU 管理策略通过 kubelet 参数 ` --cpu-manager-policy `
112
112
或 [ KubeletConfiguration] ( /zh-cn/docs/reference/config-api/kubelet-config.v1beta1/ )
@@ -160,13 +160,13 @@ gate for each individual option.
160
160
不同于 Kubernetes 标准,这里是由这些特性门控来管控选项组,因为为每个单独选项都添加一个特性门控过于繁琐。
161
161
162
162
<!--
163
- ### Changing the CPU Manager Policy
163
+ ## Changing the CPU Manager Policy
164
164
165
165
Since the CPU manager policy can only be applied when kubelet spawns new pods, simply changing from
166
166
"none" to "static" won't apply to existing pods. So in order to properly change the CPU manager
167
167
policy on a node, perform the following steps:
168
168
-->
169
- ### 更改 CPU 管理器策略 {#changing-the-cpu-manager-policy}
169
+ ## 更改 CPU 管理器策略 {#changing-the-cpu-manager-policy}
170
170
171
171
由于 CPU 管理器策略只能在 kubelet 生成新 Pod 时应用,所以简单地从 "none" 更改为 "static"
172
172
将不会对现有的 Pod 起作用。
@@ -209,16 +209,16 @@ state file `cpu_manager_state` in the kubelet root directory.
209
209
{{< /note >}}
210
210
211
211
<!--
212
- #### `none` policy configuration
212
+ ### `none` policy configuration
213
213
214
214
This policy has no extra configuration items.
215
215
-->
216
- #### ` none ` 策略配置
216
+ ### ` none ` 策略配置
217
217
218
218
该策略没有额外的配置项。
219
219
220
220
<!--
221
- #### `static` policy configuration
221
+ ### `static` policy configuration
222
222
223
223
This policy manages a shared pool of CPUs that initially contains all CPUs in the
224
224
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
234
234
both part of a `Guaranteed` pod and have integer CPU `requests` are assigned
235
235
exclusive CPUs.
236
236
--->
237
- #### ` static ` 策略配置
237
+ ### ` static ` 策略配置
238
238
239
239
此策略管理一个 CPU 共享池,该共享池最初包含节点上所有的 CPU 资源。
240
240
可独占性 CPU 资源数量等于节点的 CPU 总量减去通过 kubelet ` --kube-reserved ` 或 ` --system-reserved `
@@ -260,7 +260,7 @@ pool to become empty.
260
260
{{< /note >}}
261
261
262
262
<!--
263
- #### Static policy options {#cpu-policy-static--options}
263
+ ### Static policy options {#cpu-policy-static--options}
264
264
265
265
You can toggle groups of options on and off based upon their maturity level
266
266
using the following feature gates:
@@ -276,7 +276,7 @@ The following policy options exist for the static `CPUManager` policy:
276
276
* `strict-cpu-reservation` (alpha, hidden by default) (1.32 or higher)
277
277
* `prefer-align-cpus-by-uncorecache` (alpha, hidden by default) (1.32 or higher)
278
278
-->
279
- #### Static 策略选项 {#cpu-policy-static--options}
279
+ ### Static 策略选项 {#cpu-policy-static--options}
280
280
281
281
你可以使用以下特性门控根据成熟度级别打开或关闭选项组:
282
282
* ` CPUManagerPolicyBetaOptions ` 默认启用。禁用以隐藏 beta 级选项。
0 commit comments