Update api-overview.md

This commit is contained in:
huccshen 2020-04-30 11:32:12 +08:00 committed by GitHub
parent bc3861ac11
commit cd601dfac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 14 deletions

View File

@ -1,9 +1,5 @@
--- ---
title: Kubernetes API 总览 title: Kubernetes API 总览
reviewers:
- erictune
- lavalamp
- jbeda
content_template: templates/concept content_template: templates/concept
weight: 10 weight: 10
card: card:
@ -186,7 +182,7 @@ The two paths that support extending the API with [custom resources](/docs/conce
- [聚合器Aggregator](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/aggregated-api-servers.md)具有完整的 Kubernetes API 语义,用以实现用户自己的 apiserver。 - [聚合器Aggregator](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/aggregated-api-servers.md)具有完整的 Kubernetes API 语义,用以实现用户自己的 apiserver。
<!-- <!--
## Enabling API groups ## Enabling or disabling API groups
Certain resources and API groups are enabled by default. You can enable or disable them by setting `--runtime-config` Certain resources and API groups are enabled by default. You can enable or disable them by setting `--runtime-config`
on the apiserver. `--runtime-config` accepts comma separated values. For example: on the apiserver. `--runtime-config` accepts comma separated values. For example:
@ -213,19 +209,26 @@ to pick up the `--runtime-config` changes.
{{< /note >}} {{< /note >}}
<!-- <!--
## Enabling resources in the groups ## Enabling specific resources in the extensions/v1beta1 group
DaemonSets, Deployments, HorizontalPodAutoscalers, Ingress, Jobs and ReplicaSets are enabled by default. DaemonSets, Deployments, StatefulSet, NetworkPolicies, PodSecurityPolicies and ReplicaSets in the `extensions/v1beta1` API group are disabled by default.
You can enable other extensions resources by setting `--runtime-config` on For example: to enable deployments and daemonsets, set
apiserver. `--runtime-config` accepts comma separated values. For example, to disable deployments and jobs, set `--runtime-config=extensions/v1beta1/deployments=true,extensions/v1beta1/daemonsets=true`.
`--runtime-config=extensions/v1beta1/deployments=false,extensions/v1beta1/jobs=false`
--> -->
## 启用组中的资源 ## 启用 extensions/v1beta1 组中具体资源
默认情况下 DaemonSet、Deployment、HorizontalPodAutoscalers、Ingress、Jobs 和 ReplicaSets 是被启用的。 `extensions/v1beta1` API 组中DaemonSetsDeploymentsStatefulSet, NetworkPolicies, PodSecurityPolicies 和 ReplicaSets 是默认禁用的。
您可以通过在 apiserver 上设置`--runtime-config`来启用其他扩展资源。`--runtime-config`接受逗号分隔的值。 例如:要启用 deployments 和 daemonsets请设置 `--runtime-config=extensions/v1beta1/deployments=true,extensions/v1beta1/daemonsets=true`
例如,要禁用 Deployments 和 Jobs请设置 `--runtime-config=extensions/v1beta1/deployments=false,extensions/v1beta1/jobs=false`
{{< note >}}
<!--
Individual resource enablement/disablement is only supported in the `extensions/v1beta1` API group for legacy reasons.
-->
出于遗留原因,仅在 `extensions / v1beta1` API 组中支持各个资源的启用/禁用。
{{< /note >}}
{{% /capture %}} {{% /capture %}}