@@ -132,10 +132,10 @@ API 以聚合和非聚合形式提供。聚合的发现提供两个端点,而
132
132
-->
133
133
### 聚合的发现 {#aggregated-discovery}
134
134
135
- {{< feature-state state="beta" for_k8s_version="v1.27 " >}}
135
+ {{< feature-state feature_gate_name="AggregatedDiscoveryEndpoint " >}}
136
136
137
137
<!--
138
- Kubernetes offers beta support for aggregated discovery , publishing
138
+ Kubernetes offers beta support for _aggregated discovery_ , publishing
139
139
all resources supported by a cluster through two endpoints (`/api` and
140
140
`/apis`). Requesting this
141
141
endpoint drastically reduces the number of requests sent to fetch the
@@ -144,7 +144,7 @@ requesting the respective endpoints with an `Accept` header indicating
144
144
the aggregated discovery resource:
145
145
`Accept: application/json;v=v2beta1;g=apidiscovery.k8s.io;as=APIGroupDiscoveryList`.
146
146
-->
147
- Kubernetes 为聚合的发现提供了 Beta 支持,通过两个端点(` /api ` 和 ` /apis ` )发布集群所支持的所有资源。
147
+ Kubernetes 为 ** 聚合的发现 ** 提供了 Beta 支持,通过两个端点(` /api ` 和 ` /apis ` )发布集群所支持的所有资源。
148
148
请求这个端点会大大减少从集群获取发现数据时发送的请求数量。你可以通过带有
149
149
` Accept ` 头(` Accept: application/json;v=v2beta1;g=apidiscovery.k8s.io;as=APIGroupDiscoveryList ` )
150
150
的请求发送到不同端点,来指明聚合发现的资源。
@@ -157,7 +157,7 @@ document.
157
157
如果没有使用 ` Accept ` 头指示资源类型,对于 ` /api ` 和 ` /apis ` 端点的默认响应将是一个非聚合的发现文档。
158
158
159
159
<!--
160
- The [discovery document](https://github.com/kubernetes/kubernetes/blob/release-{{< skew currentVersion >}}/api/discovery/aggregated_v2beta1 .json)
160
+ The [discovery document](https://github.com/kubernetes/kubernetes/blob/release-{{< skew currentVersion >}}/api/discovery/aggregated_v2 .json)
161
161
for the built-in resources can be found in the Kubernetes GitHub repository.
162
162
This Github document can be used as a reference of the base set of the available resources
163
163
if a Kubernetes cluster is not available to query.
@@ -455,51 +455,6 @@ Kubernetes stores the serialized state of objects by writing them into
455
455
456
456
Kubernetes 通过将序列化状态的对象写入到 {{< glossary_tooltip term_id="etcd" >}} 中完成存储操作。
457
457
458
- <!--
459
- ## API Discovery
460
-
461
- A list of all group versions supported by a cluster is published at
462
- the `/api` and `/apis` endpoints. Each group version also advertises
463
- the list of resources supported via `/apis/<group>/<version>` (for
464
- example: `/apis/rbac.authorization.k8s.io/v1alpha1`). These endpoints
465
- are used by kubectl to fetch the list of resources supported by a
466
- cluster.
467
- -->
468
- ## API 发现 {#api-discovery}
469
-
470
- 集群支持的所有组版本列表被发布在 ` /api ` 和 ` /apis ` 端点。
471
- 每个组版本还会通过 ` /apis/<group>/<version> `
472
- (例如 ` /apis/rbac.authorization.k8s.io/v1alpha1 ` )广播支持的资源列表。
473
- 这些端点由 kubectl 用于获取集群支持的资源列表。
474
-
475
- <!--
476
- ### Aggregated Discovery
477
- -->
478
- ### 聚合发现 {#aggregated-discovery}
479
-
480
- {{< feature-state state="beta" for_k8s_version="v1.27" >}}
481
-
482
- <!--
483
- Kubernetes offers beta support for aggregated discovery, publishing
484
- all resources supported by a cluster through two endpoints (`/api` and
485
- `/apis`) compared to one for every group version. Requesting this
486
- endpoint drastically reduces the number of requests sent to fetch the
487
- discovery for the average Kubernetes cluster. This may be accessed by
488
- requesting the respective endpoints with an Accept header indicating
489
- the aggregated discovery resource:
490
- `Accept: application/json;v=v2beta1;g=apidiscovery.k8s.io;as=APIGroupDiscoveryList`.
491
-
492
- The endpoint also supports ETag and protobuf encoding.
493
- -->
494
- Kubernetes 对聚合发现提供 Beta 支持,通过两个端点(` /api ` 和 ` /apis ` )
495
- 发布集群支持的所有资源,而不是每个组版本都需要一个端点。
496
- 请求此端点显著减少了获取平均 Kubernetes 集群发现而发送的请求数量。
497
- 通过请求各自的端点并附带表明聚合发现资源
498
- ` Accept: application/json;v=v2beta1;g=apidiscovery.k8s.io;as=APIGroupDiscoveryList `
499
- 的 Accept 头部来进行访问。
500
-
501
- 该端点还支持 ETag 和 protobuf 编码。
502
-
503
458
<!--
504
459
## API groups and versioning
505
460
@@ -512,7 +467,7 @@ to ensure that the API presents a clear, consistent view of system resources
512
467
and behavior, and to enable controlling access to end-of-life and/or
513
468
experimental APIs.
514
469
-->
515
- ## API 组和版本控制 {#api-groups-and-versioning}
470
+ ## API 组和版本控制 {#api-groups-and-versioning}
516
471
517
472
为了更容易消除字段或重组资源的呈现方式,Kubernetes 支持多个 API 版本,每个版本位于不同的 API 路径,
518
473
例如 ` /api/v1 ` 或 ` /apis/rbac.authorization.k8s.io/v1alpha1 ` 。
@@ -562,7 +517,7 @@ compatibility for a length of time so that other projects have an opportunity to
562
517
563
518
任何成功的系统都要随着新的使用案例的出现和现有案例的变化来成长和变化。
564
519
为此,Kubernetes 已设计了 Kubernetes API 来持续变更和成长。
565
- Kubernetes 项目的目标是 ** 不要** 给现有客户端带来兼容性问题,并在一定的时期内维持这种兼容性,
520
+ Kubernetes 项目的目标是** 不要** 给现有客户端带来兼容性问题,并在一定的时期内维持这种兼容性,
566
521
以便其他项目有机会作出适应性变更。
567
522
568
523
<!--
0 commit comments