Skip to content

Commit

Permalink
[zh] sync source-ip.md
Browse files Browse the repository at this point in the history
  • Loading branch information
windsonsea committed Oct 26, 2022
1 parent 423150d commit e61f520
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions content/zh-cn/docs/tutorials/services/source-ip.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
title: 使用源 IP
content_type: tutorial
min-kubernetes-server-version: v1.5
weight: 10
---
<!--
title: Using Source IP
content_type: tutorial
min-kubernetes-server-version: v1.5
weight: 10
-->

<!-- overview -->
Expand Down Expand Up @@ -236,7 +238,7 @@ command=GET
<!--
The `client_address` is always the client pod's IP address, whether the client pod and server pod are in the same node or in different nodes.
-->
`client_address` 始终是客户端 Pod 的 IP 地址,不管客户端 Pod 和服务器 Pod 位于同一节点还是不同节点
不管客户端 Pod 和服务器 Pod 位于同一节点还是不同节点,`client_address` 始终是客户端 Pod 的 IP 地址。

<!--
## Source IP for Services with `Type=NodePort`
Expand Down Expand Up @@ -384,7 +386,7 @@ Visually:

* 客户端将数据包发送到没有任何端点的 `node2:nodePort`
* 数据包被丢弃
* 客户端发送数据包到 `node1:nodePort`,它**确实**有端点
* 客户端发送数据包到**必有**端点的 `node1:nodePort`
* node1 使用正确的源 IP 地址将数据包路由到端点

用图表示:
Expand Down Expand Up @@ -443,7 +445,7 @@ loadbalancer LoadBalancer 10.0.65.118 203.0.113.140 80/TCP 5m
<!--
Next, send a request to this Service's external-ip:
-->
接下来,发送请求到 Service 的 的外部IP(External-IP):
接下来,发送请求到 Service 的 的外部 IP(External-IP):
```shell
curl 203.0.113.140
```
Expand Down

0 comments on commit e61f520

Please sign in to comment.