Skip to content

Commit b28f917

Browse files
authored
Merge pull request #45267 from Jefftree/docs-agg-disco
[KEP-3352] docs for aggregated discovery
2 parents 70b22ae + 2d9b1a4 commit b28f917

File tree

2 files changed

+8
-28
lines changed

2 files changed

+8
-28
lines changed

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

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,22 @@ separate endpoint for each group version.
7171

7272
### Aggregated discovery
7373

74-
{{< feature-state state="beta" for_k8s_version="v1.27" >}}
74+
{{< feature-state feature_gate_name="AggregatedDiscoveryEndpoint" >}}
7575

76-
Kubernetes offers beta support for aggregated discovery, publishing
76+
Kubernetes offers stable support for _aggregated discovery_, publishing
7777
all resources supported by a cluster through two endpoints (`/api` and
7878
`/apis`). Requesting this
7979
endpoint drastically reduces the number of requests sent to fetch the
8080
discovery data from the cluster. You can access the data by
8181
requesting the respective endpoints with an `Accept` header indicating
8282
the aggregated discovery resource:
83-
`Accept: application/json;v=v2beta1;g=apidiscovery.k8s.io;as=APIGroupDiscoveryList`.
83+
`Accept: application/json;v=v2;g=apidiscovery.k8s.io;as=APIGroupDiscoveryList`.
8484

8585
Without indicating the resource type using the `Accept` header, the default
8686
response for the `/api` and `/apis` endpoint is an unaggregated discovery
8787
document.
8888

89-
The [discovery document](https://github.com/kubernetes/kubernetes/blob/release-v{{< skew currentVersion >}}/api/discovery/aggregated_v2beta1.json)
89+
The [discovery document](https://github.com/kubernetes/kubernetes/blob/release-v{{< skew currentVersion >}}/api/discovery/aggregated_v2.json)
9090
for the built-in resources can be found in the Kubernetes GitHub repository.
9191
This Github document can be used as a reference of the base set of the available resources
9292
if a Kubernetes cluster is not available to query.
@@ -282,30 +282,6 @@ packages that define the API objects.
282282
Kubernetes stores the serialized state of objects by writing them into
283283
{{< glossary_tooltip term_id="etcd" >}}.
284284

285-
## API Discovery
286-
287-
A list of all group versions supported by a cluster is published at
288-
the `/api` and `/apis` endpoints. Each group version also advertises
289-
the list of resources supported via `/apis/<group>/<version>` (for
290-
example: `/apis/rbac.authorization.k8s.io/v1alpha1`). These endpoints
291-
are used by kubectl to fetch the list of resources supported by a
292-
cluster.
293-
294-
### Aggregated Discovery
295-
296-
{{< feature-state feature_gate_name="AggregatedDiscoveryEndpoint" >}}
297-
298-
Kubernetes offers beta support for aggregated discovery, publishing
299-
all resources supported by a cluster through two endpoints (`/api` and
300-
`/apis`) compared to one for every group version. Requesting this
301-
endpoint drastically reduces the number of requests sent to fetch the
302-
discovery for the average Kubernetes cluster. This may be accessed by
303-
requesting the respective endpoints with an Accept header indicating
304-
the aggregated discovery resource:
305-
`Accept: application/json;v=v2beta1;g=apidiscovery.k8s.io;as=APIGroupDiscoveryList`.
306-
307-
The endpoint also supports ETag and protobuf encoding.
308-
309285
## API groups and versioning
310286

311287
To make it easier to eliminate fields or restructure resource representations,

content/en/docs/reference/command-line-tools-reference/feature-gates/aggregated-discovery-endpoint.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ stages:
1313
- stage: beta
1414
defaultValue: true
1515
fromVersion: "1.27"
16+
toVersion: "1.29"
17+
- stage: stable
18+
defaultValue: true
19+
fromVersion: "1.30"
1620
---
1721
Enable a single HTTP endpoint `/discovery/<version>` which
1822
supports native HTTP caching with ETags containing all APIResources known to the API server.

0 commit comments

Comments
 (0)