Merge pull request #24093 from ChenjunZou/patch-1

Update service.md
This commit is contained in:
Kubernetes Prow Robot 2020-09-24 20:37:11 -07:00 committed by GitHub
commit 19b6599bbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ As many Services need to expose more than one port, Kubernetes supports multiple
port definitions on a Service object.
Each port definition can have the same `protocol`, or a different one.
-->
Pod 中的端口定义是有名字的,你可以在服务的 `targetTarget` 属性中引用这些名称。
Pod 中的端口定义是有名字的,你可以在服务的 `targetPort` 属性中引用这些名称。
即使服务中使用单个配置的名称混合使用 Pod并且通过不同的端口号提供相同的网络协议此功能也可以使用。
这为部署和发展服务提供了很大的灵活性。
例如您可以更改Pods在新版本的后端软件中公开的端口号而不会破坏客户端。