Skip to content

Commit d402750

Browse files
committed
[zh] Sync a tutorial: expose-external-ip-address.md
1 parent e63dd8b commit d402750

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

content/zh-cn/docs/tutorials/stateless-application/expose-external-ip-address.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 公开外部 IP 地址以访问集群中应用程序
2+
title: 公开外部 IP 地址以访问集群中的应用
33
content_type: tutorial
44
weight: 10
55
---
@@ -41,21 +41,21 @@ external IP address.
4141
* Create a Service object that exposes an external IP address.
4242
* Use the Service object to access the running application.
4343
-->
44-
* 运行 Hello World 应用程序的五个实例
44+
* 运行 Hello World 应用的五个实例
4545
* 创建一个公开外部 IP 地址的 Service 对象。
46-
* 使用 Service 对象访问正在运行的应用程序
46+
* 使用 Service 对象访问正在运行的应用
4747

4848
<!-- lessoncontent -->
4949

5050
<!--
5151
## Creating a service for an application running in five pods
5252
-->
53-
## 为一个在五个 pod 中运行的应用程序创建服务 {#creating-a-service-for-an-app-running-in-five-pods}
53+
## 为在五个 Pod 中运行的应用创建服务 {#creating-a-service-for-an-app-running-in-five-pods}
5454

5555
<!--
5656
1. Run a Hello World application in your cluster:
5757
-->
58-
1. 在集群中运行 Hello World 应用程序
58+
1. 在集群中运行 Hello World 应用
5959

6060
{{% code_sample file="service/load-balancer-example.yaml" %}}
6161

@@ -78,7 +78,7 @@ external IP address.
7878
对象和一个关联的
7979
{{< glossary_tooltip term_id="replica-set" text="ReplicaSet" >}} 对象。
8080
ReplicaSet 有五个 {{< glossary_tooltip text="Pod" term_id="pod" >}},
81-
每个都运行 Hello World 应用程序
81+
每个都运行 Hello World 应用
8282

8383
<!--
8484
1. Display information about the Deployment:
@@ -194,7 +194,7 @@ external IP address.
194194
-->
195195
7. 在前面的输出中,你可以看到服务有几个端点:
196196
10.0.0.6:8080、10.0.1.6:8080、10.0.1.7:8080 和另外两个,
197-
这些都是正在运行 Hello World 应用程序的 Pod 的内部地址。
197+
这些都是正在运行 Hello World 应用的 Pod 的内部地址。
198198
要验证这些是 Pod 地址,请输入以下命令:
199199

200200
```shell
@@ -219,7 +219,7 @@ external IP address.
219219
1. Use the external IP address (`LoadBalancer Ingress`) to access the Hello
220220
World application:
221221
-->
222-
8. 使用外部 IP 地址(`LoadBalancer Ingress`)访问 Hello World 应用程序:
222+
8. 使用外部 IP 地址(`LoadBalancer Ingress`)访问 Hello World 应用:
223223

224224
```shell
225225
curl http://<external-ip>:<port>
@@ -236,7 +236,7 @@ external IP address.
236236
其中 `<external-ip>` 是你的服务的外部 IP 地址(`LoadBalancer Ingress`),
237237
`<port>` 是你的服务描述中的 `port` 的值。
238238
如果你正在使用 minikube,输入 `minikube service my-service`
239-
将在浏览器中自动打开 Hello World 应用程序
239+
将在浏览器中自动打开 Hello World 应用
240240

241241
<!--
242242
The response to a successful request is a hello message:
@@ -247,7 +247,7 @@ external IP address.
247247
```shell
248248
Hello, world!
249249
Version: 2.0.0
250-
Hostname: hello-world-2895499144-2e5uh
250+
Hostname: 0bd46b45f32f
251251
```
252252

253253
## {{% heading "cleanup" %}}
@@ -265,7 +265,7 @@ kubectl delete services my-service
265265
To delete the Deployment, the ReplicaSet, and the Pods that are running
266266
the Hello World application, enter this command:
267267
-->
268-
要删除正在运行 Hello World 应用程序的 Deployment、ReplicaSet 和 Pod,请输入以下命令:
268+
要删除正在运行 Hello World 应用的 Deployment、ReplicaSet 和 Pod,请输入以下命令:
269269

270270
```shell
271271
kubectl delete deployment hello-world

content/zh-cn/examples/service/load-balancer-example.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
app.kubernetes.io/name: load-balancer-example
1616
spec:
1717
containers:
18-
- image: gcr.io/google-samples/node-hello:1.0
18+
- image: gcr.io/google-samples/hello-app:2.0
1919
name: hello-world
2020
ports:
2121
- containerPort: 8080

0 commit comments

Comments
 (0)