Skip to content

Commit a0c0a77

Browse files
committed
[zh] sync /services-networking/service.md
1 parent da376a3 commit a0c0a77

File tree

1 file changed

+26
-19
lines changed
  • content/zh-cn/docs/concepts/services-networking

1 file changed

+26
-19
lines changed

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

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Pod 是非永久性资源。
7070
这导致了一个问题: 如果一组 Pod(称为“后端”)为集群内的其他 Pod(称为“前端”)提供功能,
7171
那么前端如何找出并跟踪要连接的 IP 地址,以便前端可以使用提供工作负载的后端部分?
7272

73-
进入 **Services**
73+
进入 **Service**
7474

7575
<!--
7676
## Service resources {#service-resource}
@@ -119,8 +119,8 @@ balancer in between your application and the backend Pods.
119119
### 云原生服务发现 {#cloud-native-discovery}
120120

121121
如果你想要在应用程序中使用 Kubernetes API 进行服务发现,则可以查询
122-
{{< glossary_tooltip text="API 服务器" term_id="kube-apiserver" >}}
123-
用于匹配 EndpointSlices。只要服务中的 Pod 集合发生更改,Kubernetes 就会为服务更新 EndpointSlices。
122+
{{< glossary_tooltip text="API 服务器" term_id="kube-apiserver" >}}用于匹配 EndpointSlices。
123+
只要服务中的 Pod 集合发生更改,Kubernetes 就会为服务更新 EndpointSlices。
124124

125125
对于非本机应用程序,Kubernetes 提供了在应用程序和后端 Pod 之间放置网络端口或负载均衡器的方法。
126126

@@ -708,15 +708,15 @@ the port number for `http`, as well as the IP address.
708708

709709
The Kubernetes DNS server is the only way to access `ExternalName` Services.
710710
You can find more information about `ExternalName` resolution in
711-
[DNS Pods and Services](/docs/concepts/services-networking/dns-pod-service/).
711+
[DNS for Services and Pods](/docs/concepts/services-networking/dns-pod-service/).
712712
-->
713713
Kubernetes 还支持命名端口的 DNS SRV(服务)记录。
714714
如果 `my-service.my-ns` 服务具有名为 `http` 的端口,且协议设置为 TCP,
715715
则可以对 `_http._tcp.my-service.my-ns` 执行 DNS SRV 查询以发现该端口号、`"http"` 以及 IP 地址。
716716

717717
Kubernetes DNS 服务器是唯一的一种能够访问 `ExternalName` 类型的 Service 的方式。
718-
更多关于 `ExternalName` 信息可以查看
719-
[DNS Pod 和 Service](/zh-cn/docs/concepts/services-networking/dns-pod-service/)。
718+
更多关于 `ExternalName` 解析的信息可以查看
719+
[Service 与 Pod 的 DNS](/zh-cn/docs/concepts/services-networking/dns-pod-service/)。
720720

721721
<!--
722722
## Headless Services {#headless-services}
@@ -1842,21 +1842,28 @@ Kubernetes 提供的使用虚拟 IP 地址公开服务的机制。
18421842
## {{% heading "whatsnext" %}}
18431843

18441844
<!--
1845+
Learn more about the following:
18451846
* Follow the [Connecting Applications with Services](/docs/tutorials/services/connect-applications-service/) tutorial
1846-
* Read about [Ingress](/docs/concepts/services-networking/ingress/)
1847-
* Read about [EndpointSlices](/docs/concepts/services-networking/endpoint-slices/)
1848-
1849-
For more context:
1850-
* Read [Virtual IPs and Service Proxies](/docs/reference/networking/virtual-ips/)
1851-
* Read the [API reference](/docs/reference/kubernetes-api/service-resources/service-v1/) for the Service API
1852-
* Read the [API reference](/docs/reference/kubernetes-api/service-resources/endpoints-v1/) for the Endpoints API
1853-
* Read the [API reference](/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/) for the EndpointSlice API
1847+
* [Ingress](/docs/concepts/services-networking/ingress/) exposes HTTP and HTTPS routes from outside the cluster to services within the cluster.
1848+
* [EndpointSlices](/docs/concepts/services-networking/endpoint-slices/)
18541849
-->
1850+
进一步学习以下章节:
1851+
18551852
* 遵循[使用 Service 连接到应用](/zh-cn/docs/tutorials/services/connect-applications-service/)教程
1856-
* 阅读了解 [Ingress](/zh-cn/docs/concepts/services-networking/ingress/)
1857-
* 阅读了解[端点切片(Endpoint Slices)](/zh-cn/docs/concepts/services-networking/endpoint-slices/)
1853+
* [Ingress](/zh-cn/docs/concepts/services-networking/ingress/) 将来自集群外部的 HTTP 和 HTTPS
1854+
请求路由暴露给集群内的服务。
1855+
* [EndpointSlice](/zh-cn/docs/concepts/services-networking/endpoint-slices/)
18581856

1857+
<!--
1858+
For more context:
1859+
* [Virtual IPs and Service Proxies](/docs/reference/networking/virtual-ips/)
1860+
* [API reference](/docs/reference/kubernetes-api/service-resources/service-v1/) for the Service API
1861+
* [API reference](/docs/reference/kubernetes-api/service-resources/endpoints-v1/) for the Endpoints API
1862+
* [API reference](/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/) for the EndpointSlice API
1863+
-->
18591864
更多上下文:
1860-
* 阅读[虚拟 IP 和 Service 代理](/zh-cn/docs/reference/networking/virtual-ips/)
1861-
* 阅读 Service API 的 [API 参考](/zh-cn/docs/reference/kubernetes-api/service-resources/service-v1/)
1862-
* 阅读 EndpointSlice API 的 [API 参考](/zh-cn/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/)
1865+
1866+
* [虚拟 IP 和 Service 代理](/zh-cn/docs/reference/networking/virtual-ips/)
1867+
* Service API 的 [API 参考](/zh-cn/docs/reference/kubernetes-api/service-resources/service-v1/)
1868+
* Endpoints API 的 [API 参考](/zh-cn/docs/reference/kubernetes-api/service-resources/endpoints-v1/)
1869+
* EndpointSlice API 的 [API 参考](/zh-cn/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/)

0 commit comments

Comments
 (0)