From 11449e456980e4ed78c9b663e565d66d86b5748e Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 21 Aug 2022 20:41:02 +0800 Subject: [PATCH] [zh-cn] resync /services/source-ip.md --- .../zh-cn/docs/tutorials/services/source-ip.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/content/zh-cn/docs/tutorials/services/source-ip.md b/content/zh-cn/docs/tutorials/services/source-ip.md index eaa8109cc7..1b16bf4650 100644 --- a/content/zh-cn/docs/tutorials/services/source-ip.md +++ b/content/zh-cn/docs/tutorials/services/source-ip.md @@ -390,7 +390,6 @@ Visually: 用图表示: {{< figure src="/zh-cn/docs/images/tutor-service-nodePort-fig02.svg" alt="图 2:源 IP NodePort" class="diagram-large" caption="如图。源 IP(Type=NodePort)保存客户端源 IP 地址" link="" >}} - 第一类负载均衡器必须使用负载均衡器和后端之间商定的协议来传达真实的客户端 IP, 例如 HTTP [转发](https://tools.ietf.org/html/rfc7239#section-5.2)或 -[X-FORWARDED-FOR](https://en.wikipedia.org/wiki/X-Forwarded-For) -表头,或[代理协议](https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt)。 +[X-FORWARDED-FOR](https://zh.wikipedia.org/wiki/X-Forwarded-For) +标头,或[代理协议](https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt)。 第二类负载均衡器可以通过创建指向存储在 Service 上的 `service.spec.healthCheckNodePort` 字段中的端口的 HTTP 健康检查来利用上述功能。 @@ -623,8 +622,8 @@ Delete the Services: --> 删除 Service: -```console -$ kubectl delete svc -l app=source-ip-app +```shell +kubectl delete svc -l app=source-ip-app ``` 删除 Deployment、ReplicaSet 和 Pod: -```console -$ kubectl delete deployment source-ip-app +```shell +kubectl delete deployment source-ip-app ``` ## {{% heading "whatsnext" %}}