@@ -148,6 +148,28 @@ namespace (`/apis/GROUP/VERSION/namespaces/NAMESPACE/*`). A namespace-scoped res
148
148
type will be deleted when its namespace is deleted and access to that resource type
149
149
is controlled by authorization checks on the namespace scope.
150
150
151
+ Note: core resources use `/api` instead of `/apis` and omit the GROUP path segment.
152
+
153
+ Examples:
154
+ -->
155
+ ## 资源 URI {#resource-uris}
156
+
157
+ 所有资源类型要么是集群作用域的(` /apis/GROUP/VERSION/* ` ),
158
+ 要么是名字空间作用域的(` /apis/GROUP/VERSION/namespaces/NAMESPACE/* ` )。
159
+ 名字空间作用域的资源类型会在其名字空间被删除时也被删除,
160
+ 并且对该资源类型的访问是由定义在名字空间域中的授权检查来控制的。
161
+
162
+ 注意: 核心资源使用 ` /api ` 而不是 ` /apis ` ,并且不包含 GROUP 路径段。
163
+
164
+ 例如:
165
+ * ` /api/v1/namespaces `
166
+ * ` /api/v1/pods `
167
+ * ` /api/v1/namespaces/my-namespace/pods `
168
+ * ` /apis/apps/v1/deployments `
169
+ * ` /apis/apps/v1/namespaces/my-namespace/deployments `
170
+ * ` /apis/apps/v1/namespaces/my-namespace/deployments/my-deployment `
171
+
172
+ <!--
151
173
You can also access collections of resources (for example: listing all Nodes).
152
174
The following paths are used to retrieve collections and resources:
153
175
@@ -162,13 +184,6 @@ The following paths are used to retrieve collections and resources:
162
184
* `GET /apis/GROUP/VERSION/namespaces/NAMESPACE/RESOURCETYPE` - return collection of all instances of the resource type in NAMESPACE
163
185
* `GET /apis/GROUP/VERSION/namespaces/NAMESPACE/RESOURCETYPE/NAME` - return the instance of the resource type with NAME in NAMESPACE
164
186
-->
165
- ## 资源 URI {#resource-uris}
166
-
167
- 所有资源类型要么是集群作用域的(` /apis/GROUP/VERSION/* ` ),
168
- 要么是名字空间作用域的(` /apis/GROUP/VERSION/namespaces/NAMESPACE/* ` )。
169
- 名字空间作用域的资源类型会在其名字空间被删除时也被删除,
170
- 并且对该资源类型的访问是由定义在名字空间域中的授权检查来控制的。
171
-
172
187
你还可以访问资源集合(例如:列出所有 Node)。以下路径用于检索集合和资源:
173
188
174
189
* 集群作用域的资源:
@@ -1175,7 +1190,7 @@ by default.
1175
1190
The `kubectl` tool uses the `--validate` flag to set the level of field validation.
1176
1191
Historically `--validate` was used to toggle client-side validation on or off as
1177
1192
a boolean flag. Since Kubernetes 1.25, kubectl uses
1178
- server-side field validation when sending requests to a serer with this feature
1193
+ server-side field validation when sending requests to a server with this feature
1179
1194
enabled. Validation will fall back to client-side only when it cannot connect
1180
1195
to an API server with field validation enabled.
1181
1196
-->
0 commit comments