Skip to content

Commit 7f12a4e

Browse files
authored
Update kubernetes-api.md
1 parent 9291e73 commit 7f12a4e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

content/zh/docs/concepts/overview/kubernetes-api.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ Certain resources and API groups are enabled by default. They can be enabled or
232232
on apiserver. `--runtime-config` accepts comma separated values. For example: to disable batch/v1, set
233233
`--runtime-config=batch/v1=false`, to enable batch/v2alpha1, set `--runtime-config=batch/v2alpha1`.
234234
The flag accepts comma separated set of key=value pairs describing runtime configuration of the apiserver.
235+
236+
Enabling or disabling groups or resources requires restarting apiserver and controller-manager
237+
to pick up the `--runtime-config` changes.
235238
-->
236239

237240
## 启用 API 组
@@ -243,10 +246,6 @@ The flag accepts comma separated set of key=value pairs describing runtime confi
243246

244247
{{< note >}}
245248

246-
<!--
247-
Enabling or disabling groups or resources requires restarting apiserver and controller-manager
248-
to pick up the `--runtime-config` changes.
249-
-->
250249
启用或禁用组或资源需要重新启动apiserver和控制器管理器来使得 `--runtime-config` 更改生效。
251250

252251
{{< /note >}}
@@ -257,6 +256,8 @@ to pick up the `--runtime-config` changes.
257256
DaemonSets, Deployments, StatefulSet, NetworkPolicies, PodSecurityPolicies and ReplicaSets in the `extensions/v1beta1` API group are disabled by default.
258257
For example: to enable deployments and daemonsets, set
259258
`--runtime-config=extensions/v1beta1/deployments=true,extensions/v1beta1/daemonsets=true`.
259+
260+
Individual resource enablement/disablement is only supported in the `extensions/v1beta1` API group for legacy reasons.
260261
-->
261262

262263
## 启用 extensions/v1beta1 组中资源
@@ -266,9 +267,6 @@ For example: to enable deployments and daemonsets, set
266267

267268
{{< note >}}
268269

269-
<!--
270-
Individual resource enablement/disablement is only supported in the `extensions/v1beta1` API group for legacy reasons.
271-
-->
272270
出于遗留原因,仅在 `extensions / v1beta1` API 组中支持各个资源的启用/禁用。
273271

274272
{{< /note >}}

0 commit comments

Comments
 (0)