Skip to content

Commit caec7b9

Browse files
committed
sync service topology-aware-routing custom-resource-definition-versioning
1 parent 6f52a26 commit caec7b9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

content/zh-cn/docs/concepts/services-networking/service.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,13 +499,13 @@ the EndpointSlice manifest: a TCP connection to 10.1.2.3 or 10.4.5.6, on port 93
499499
{{< note >}}
500500
<!--
501501
The Kubernetes API server does not allow proxying to endpoints that are not mapped to
502-
pods. Actions such as `kubectl proxy <service-name>` where the service has no
502+
pods. Actions such as `kubectl port-forward service/<service-name> forwardedPort:servicePort` where the service has no
503503
selector will fail due to this constraint. This prevents the Kubernetes API server
504504
from being used as a proxy to endpoints the caller may not be authorized to access.
505505
-->
506506
Kubernetes API 服务器不允许将流量代理到未被映射至 Pod 上的端点。由于此约束,当 Service
507-
没有选择算符时,诸如 `kubectl proxy <service-name>` 之类的操作将会失败。这可以防止
508-
Kubernetes API 服务器被用作调用者可能无权访问的端点的代理。
507+
没有选择算符时,诸如 `kubectl port-forward service/<service-name> forwardedPort:servicePort` 之类的操作将会失败。
508+
这可以防止 Kubernetes API 服务器被用作调用者可能无权访问的端点的代理。
509509
{{< /note >}}
510510

511511
<!--

content/zh-cn/docs/concepts/services-networking/topology-aware-routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,11 @@ Kubernetes 的部署方式有很多种,没有一种按区域分配端点的启
348348
<!--
349349
* Follow the [Connecting Applications with Services](/docs/tutorials/services/connect-applications-service/) tutorial
350350
* Learn about the
351-
[trafficDistribution](/docs/concepts/services-networking/service/#trafic-distribution)
351+
[trafficDistribution](/docs/concepts/services-networking/service/#traffic-distribution)
352352
field, which is closely related to the `service.kubernetes.io/topology-mode`
353353
annotation and provides flexible options for traffic routing within
354354
Kubernetes.
355355
-->
356356
* 参阅[使用 Service 连接到应用](/zh-cn/docs/tutorials/services/connect-applications-service/)教程。
357-
* 进一步了解 [trafficDistribution](/zh-cn/docs/concepts/services-networking/service/#trafic-distribution)字段,
357+
* 进一步了解 [trafficDistribution](/zh-cn/docs/concepts/services-networking/service/#traffic-distribution)字段,
358358
该字段与 `service.kubernetes.io/topology-mode` 注解密切相关,并为 Kubernetes 中的流量路由提供灵活的配置选项。

content/zh-cn/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ with the `response` stanza populated, serialized to JSON.
11681168
If conversion succeeds, a webhook should return a `response` stanza containing the following fields:
11691169
* `uid`, copied from the `request.uid` sent to the webhook
11701170
* `result`, set to `{"status":"Success"}`
1171-
* `convertedObjects`, containing all of the objects from `request.objects`, converted to `request.desiredVersion`
1171+
* `convertedObjects`, containing all of the objects from `request.objects`, converted to `request.desiredAPIVersion`
11721172

11731173
Example of a minimal successful response from a webhook:
11741174
-->
@@ -1183,7 +1183,7 @@ Webhook 响应包含 200 HTTP 状态代码、`Content-Type: application/json`,
11831183
* `uid`,从发送到 webhook 的 `request.uid` 复制而来
11841184
* `result`,设置为 `{"status":"Success"}}`
11851185
* `convertedObjects`,包含来自 `request.objects` 的所有对象,均已转换为
1186-
`request.desiredVersion`
1186+
`request.desiredAPIVersion`
11871187

11881188
Webhook 的最简单成功响应示例:
11891189

0 commit comments

Comments
 (0)