You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/reference/using-api/api-overview.md
+34-30Lines changed: 34 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,13 @@ card:
13
13
---
14
14
15
15
<!-- overview -->
16
-
This page provides an overview of the Kubernetes API.
17
16
17
+
This page provides an overview of the Kubernetes API.
18
18
19
19
<!-- 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
21
23
platform is treated as an API object and has a corresponding entry in the
@@ -38,12 +40,12 @@ multiple API versions, each at a different API path. For example: `/api/v1` or
38
40
The version is set at the API level rather than at the resource or field level to:
39
41
40
42
- 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.
42
44
43
45
The JSON and Protobuf serialization schemas follow the same guidelines for schema changes. The following descriptions cover both formats.
44
46
45
47
{{< 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
47
49
versioning proposal](https://git.k8s.io/community/contributors/design-proposals/release/versioning.md) describes the relationship between API versioning and software versioning.
48
50
{{< /note >}}
49
51
@@ -56,53 +58,55 @@ Here's a summary of each level:
56
58
- The software may contain bugs. Enabling a feature may expose bugs. A feature may be disabled by default.
57
59
- The support for a feature may be dropped at any time without notice.
58
60
- 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
+
61
64
- Beta:
62
65
- The version names contain `beta` (for example, `v2beta3`).
63
66
- The software is well tested. Enabling a feature is considered safe. Features are enabled by default.
64
67
- 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
+
73
78
- Stable:
74
79
- The version name is `vX` where `X` is an integer.
75
80
- The stable versions of features appear in released software for many subsequent versions.
76
81
77
82
## API groups
78
83
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.
80
85
81
86
Currently, there are several API groups in use:
82
87
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" >}}/).
86
93
87
94
The two paths that support extending the API with [custom resources](/docs/concepts/extend-kubernetes/api-extension/custom-resources/) are:
-[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.
-[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.
93
99
94
100
## Enabling or disabling API groups
95
101
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:
98
105
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`
103
108
104
109
{{< 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
0 commit comments