sync service topology-aware-routing custom-resource-definition-versioning

pull/46908/head
xin gu 2024-06-21 15:16:10 +08:00
parent 6f52a26289
commit caec7b92e2
3 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

@ -1168,7 +1168,7 @@ with the `response` stanza populated, serialized to JSON.
If conversion succeeds, a webhook should return a `response` stanza containing the following fields:
* `uid`, copied from the `request.uid` sent to the webhook
* `result`, set to `{"status":"Success"}`
* `convertedObjects`, containing all of the objects from `request.objects`, converted to `request.desiredVersion`
* `convertedObjects`, containing all of the objects from `request.objects`, converted to `request.desiredAPIVersion`
Example of a minimal successful response from a webhook:
-->
@ -1183,7 +1183,7 @@ Webhook 响应包含 200 HTTP 状态代码、`Content-Type: application/json`
* `uid`,从发送到 webhook 的 `request.uid` 复制而来
* `result`,设置为 `{"status":"Success"}}`
* `convertedObjects`,包含来自 `request.objects` 的所有对象,均已转换为
`request.desiredVersion`
`request.desiredAPIVersion`
Webhook 的最简单成功响应示例: