Skip to content

Commit 6b62a4d

Browse files
authored
Merge pull request #25973 from yuandongx/patch-15
[zh] "/zh/docs/tutorials/stateless-application/expose-external-ip-address" page is outdate.
2 parents a66af45 + 04c9977 commit 6b62a4d

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

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

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,18 @@ external IP address.
2020
## {{% heading "prerequisites" %}}
2121

2222
<!--
23-
* Install [kubectl](/docs/tasks/tools/install-kubectl/).
24-
25-
* Use a cloud provider like Google Kubernetes Engine or Amazon Web Services to
26-
create a Kubernetes cluster. This tutorial creates an
27-
[external load balancer](/docs/tasks/access-application-cluster/create-external-load-balancer/),
28-
which requires a cloud provider.
29-
30-
* Configure `kubectl` to communicate with your Kubernetes API server. For
31-
instructions, see the documentation for your cloud provider.
23+
* Install [kubectl](/docs/tasks/tools/install-kubectl/).
24+
* Use a cloud provider like Google Kubernetes Engine or Amazon Web Services to
25+
create a Kubernetes cluster. This tutorial creates an
26+
[external load balancer](/docs/tasks/access-application-cluster/create-external-load-balancer/),
27+
which requires a cloud provider.
28+
* Configure `kubectl` to communicate with your Kubernetes API server. For instructions, see the
29+
documentation for your cloud provider.
3230
-->
33-
3431
* 安装 [kubectl](/zh/docs/tasks/tools/install-kubectl/).
35-
3632
* 使用 Google Kubernetes Engine 或 Amazon Web Services 等云供应商创建 Kubernetes 集群。
3733
本教程创建了一个[外部负载均衡器](/zh/docs/tasks/access-application-cluster/create-external-load-balancer/)
3834
需要云供应商。
39-
4035
* 配置 `kubectl` 与 Kubernetes API 服务器通信。有关说明,请参阅云供应商文档。
4136

4237
## {{% heading "objectives" %}}
@@ -68,7 +63,6 @@ external IP address.
6863
```shell
6964
kubectl apply -f https://k8s.io/examples/service/load-balancer-example.yaml
7065
```
71-
7266
<!--
7367
The preceding command creates a
7468
{{< glossary_tooltip text="Deployment" term_id="deployment" >}}
@@ -128,9 +122,9 @@ external IP address.
128122
-->
129123
输出类似于:
130124

131-
```
132-
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
133-
my-service ClusterIP 10.3.245.137 104.198.205.71 8080/TCP 54s
125+
```console
126+
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
127+
my-service LoadBalancer 10.3.245.137 104.198.205.71 8080/TCP 54s
134128
```
135129

136130
<!--
@@ -162,12 +156,12 @@ external IP address.
162156
-->
163157
输出类似于:
164158

165-
```
159+
```console
166160
Name: my-service
167161
Namespace: default
168-
Labels: run=load-balancer-example
162+
Labels: app.kubernetes.io/name=load-balancer-example
169163
Annotations: <none>
170-
Selector: run=load-balancer-example
164+
Selector: app.kubernetes.io/name=load-balancer-example
171165
Type: LoadBalancer
172166
IP: 10.3.245.137
173167
LoadBalancer Ingress: 104.198.205.71
@@ -207,7 +201,7 @@ external IP address.
207201
-->
208202
输出类似于:
209203

210-
```
204+
```console
211205
NAME ... IP NODE
212206
hello-world-2895499144-1jaz9 ... 10.0.1.6 gke-cluster-1-default-pool-e0b8d269-1afc
213207
hello-world-2895499144-2e5uh ... 10.0.1.8 gke-cluster-1-default-pool-e0b8d269-1afc
@@ -241,7 +235,7 @@ external IP address.
241235
-->
242236
成功请求的响应是一条问候消息:
243237

244-
```
238+
```shell
245239
Hello Kubernetes!
246240
```
247241

0 commit comments

Comments
 (0)