Skip to content

Commit 5632ae9

Browse files
authored
Merge pull request #23819 from kbhawkey/kb-api-overview
minor cleanup of API overview
2 parents 9ec9ebb + a6599ab commit 5632ae9

File tree

1 file changed

+34
-30
lines changed

1 file changed

+34
-30
lines changed

content/en/docs/reference/using-api/api-overview.md

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ card:
1313
---
1414

1515
<!-- overview -->
16-
This page provides an overview of the Kubernetes API.
1716

17+
This page provides an overview of the Kubernetes API.
1818

1919
<!-- body -->
20-
The REST API is the fundamental fabric of Kubernetes. All operations and communications between components, and external user commands are REST API calls that the API Server handles. Consequently, everything in the Kubernetes
20+
21+
The REST API is the fundamental fabric of Kubernetes. All operations and communications between components
22+
and external user commands are REST API calls that the API Server handles. Consequently, everything in the Kubernetes
2123
platform is treated as an API object and has a corresponding entry in the
2224
[API](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/).
2325

@@ -38,12 +40,12 @@ multiple API versions, each at a different API path. For example: `/api/v1` or
3840
The version is set at the API level rather than at the resource or field level to:
3941

4042
- Ensure that the API presents a clear and consistent view of system resources and behavior.
41-
- Enable control access to end-of-life and/or experimental APIs.
43+
- Enable control access to deprecated or experimental APIs.
4244

4345
The JSON and Protobuf serialization schemas follow the same guidelines for schema changes. The following descriptions cover both formats.
4446

4547
{{< note >}}
46-
The API versioning and software versioning are indirectly related. The [API and release
48+
The API versioning and software versioning are indirectly related. The [API and release
4749
versioning proposal](https://git.k8s.io/community/contributors/design-proposals/release/versioning.md) describes the relationship between API versioning and software versioning.
4850
{{< /note >}}
4951

@@ -56,53 +58,55 @@ Here's a summary of each level:
5658
- The software may contain bugs. Enabling a feature may expose bugs. A feature may be disabled by default.
5759
- The support for a feature may be dropped at any time without notice.
5860
- The API may change in incompatible ways in a later software release without notice.
59-
- The software is recommended for use only in short-lived testing clusters, due to increased risk of bugs and lack of long-term support.
60-
61+
- The software is recommended for use only in short-lived testing clusters due to increased risk of bugs
62+
and lack of long-term support.
63+
6164
- Beta:
6265
- The version names contain `beta` (for example, `v2beta3`).
6366
- The software is well tested. Enabling a feature is considered safe. Features are enabled by default.
6467
- The support for a feature will not be dropped, though the details may change.
65-
- The schema and/or semantics of objects may change in incompatible ways in a subsequent beta or stable release. When this happens, migration instructions are provided. This may require deleting, editing, and re-creating
66-
API objects. The editing process may require some thought. This may require downtime for applications that rely on the feature.
67-
- The software is recommended for only non-business-critical uses because of potential for incompatible changes in subsequent releases. If you have multiple clusters which can be upgraded independently, you may be able to relax this restriction.
68-
69-
{{< note >}}
70-
Try the beta features and provide feedback. After the features exit beta, it may not be practical to make more changes.
71-
{{< /note >}}
72-
68+
- The schema or semantics of objects may change in incompatible ways in a subsequent beta or stable release.
69+
When this happens, migration instructions are provided. Schema changes may require deleting, editing,
70+
or recreating API objects. The editing process may not be straightforward. Migration may require
71+
downtime for applications that rely on the feature.
72+
- The software is not recommended for production uses. Subsequent releases may introduce
73+
incompatible changes. If you have multiple clusters which can be upgraded independently,
74+
you may be able to relax this restriction.
75+
- Try the beta features and provide feedback. After the features exit beta, it may not be practical
76+
to make more changes.
77+
7378
- Stable:
7479
- The version name is `vX` where `X` is an integer.
7580
- The stable versions of features appear in released software for many subsequent versions.
7681

7782
## API groups
7883

79-
[*API groups*](https://git.k8s.io/community/contributors/design-proposals/api-machinery/api-group.md) make it easier to extend the Kubernetes API. The API group is specified in a REST path and in the `apiVersion` field of a serialized object.
84+
[API groups](https://git.k8s.io/community/contributors/design-proposals/api-machinery/api-group.md) make it easier to extend the Kubernetes API. The API group is specified in a REST path and in the `apiVersion` field of a serialized object.
8085

8186
Currently, there are several API groups in use:
8287

83-
* The *core* (also called *legacy*) group, which is at REST path `/api/v1` and is not specified as part of the `apiVersion` field, for example, `apiVersion: v1`.
84-
* The named groups are at REST path `/apis/$GROUP_NAME/$VERSION`, and use `apiVersion: $GROUP_NAME/$VERSION`
85-
(for example, `apiVersion: batch/v1`). You can find the full list of supported API groups in [Kubernetes API reference](/docs/reference/).
88+
- The *core* (also called *legacy*) group is found at REST path `/api/v1`. The core group is not specified
89+
as part of the `apiVersion` field, for example, `apiVersion: v1`.
90+
- The named groups are at REST path `/apis/$GROUP_NAME/$VERSION` and use `apiVersion: $GROUP_NAME/$VERSION`
91+
(for example, `apiVersion: batch/v1`). You can find the full list of supported API groups in
92+
[Kubernetes API reference](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/).
8693

8794
The two paths that support extending the API with [custom resources](/docs/concepts/extend-kubernetes/api-extension/custom-resources/) are:
8895

89-
- [CustomResourceDefinition](/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/)
90-
for basic CRUD needs.
91-
- [aggregator](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/aggregated-api-servers.md) for a full set of Kubernetes API semantics to implement their own apiserver.
92-
96+
- [CustomResourceDefinition](/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/)
97+
for basic CRUD needs.
98+
- [aggregator](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/aggregated-api-servers.md) for a full set of Kubernetes API semantics to implement their own API server.
9399

94100
## Enabling or disabling API groups
95101

96-
Certain resources and API groups are enabled by default. You can enable or disable them by setting `--runtime-config`
97-
on the apiserver. `--runtime-config` accepts comma separated values. For example:
102+
Certain resources and API groups are enabled by default. You can enable or disable them by
103+
setting `--runtime-config` on the API server. The `--runtime-config` flag accepts comma separated
104+
key=value pairs describing the runtime configuration of the API server. For example:
98105

99-
- to disable batch/v1, set `--runtime-config=batch/v1=false`
100-
- to enable batch/v2alpha1, set `--runtime-config=batch/v2alpha1`
101-
102-
The flag accepts comma separated set of key=value pairs describing runtime configuration of the apiserver.
106+
- to disable batch/v1, set `--runtime-config=batch/v1=false`
107+
- to enable batch/v2alpha1, set `--runtime-config=batch/v2alpha1`
103108

104109
{{< note >}}
105-
When you enable or disable groups or resources, you need to restart the apiserver and controller-manager
110+
When you enable or disable groups or resources, you need to restart the API server and controller-manager
106111
to pick up the `--runtime-config` changes.
107112
{{< /note >}}
108-

0 commit comments

Comments
 (0)