Skip to content

Commit

Permalink
Update kubernetes-api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
huchengze authored May 20, 2020
1 parent 9291e73 commit 7f12a4e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions content/zh/docs/concepts/overview/kubernetes-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ Certain resources and API groups are enabled by default. They can be enabled or
on apiserver. `--runtime-config` accepts comma separated values. For example: to disable batch/v1, set
`--runtime-config=batch/v1=false`, to enable batch/v2alpha1, set `--runtime-config=batch/v2alpha1`.
The flag accepts comma separated set of key=value pairs describing runtime configuration of the apiserver.
Enabling or disabling groups or resources requires restarting apiserver and controller-manager
to pick up the `--runtime-config` changes.
-->

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

{{< note >}}

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

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

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

{{< note >}}

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

{{< /note >}}
Expand Down

0 comments on commit 7f12a4e

Please sign in to comment.