Skip to content

Commit bf4f642

Browse files
authored
Merge pull request #21256 from gaoguangze111/update-expose-external-ip-address
Update Chinese page expose-external-ip-address.md
2 parents 4055ff7 + 3e1611b commit bf4f642

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

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

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ external IP address.
7575
-->
7676
1. 在集群中运行 Hello World 应用程序:
7777

78-
kubectl run hello-world --replicas=5 --labels="run=load-balancer-example" --image=gcr.io/google-samples/node-hello:1.0 --port=8080
78+
{{< codenew file="service/load-balancer-example.yaml" >}}
79+
80+
```shell
81+
kubectl apply -f https://k8s.io/examples/service/load-balancer-example.yaml
82+
```
7983

8084
<!--
8185
The preceding command creates a
@@ -129,8 +133,20 @@ external IP address.
129133
my-service ClusterIP 10.3.245.137 104.198.205.71 8080/TCP 54s
130134

131135
<!--
132-
Note: If the external IP address is shown as \<pending\>, wait for a minute
133-
and enter the same command again.
136+
{{< note >}}
137+
138+
The `type=LoadBalancer` service is backed by external cloud providers, which is not covered in this example, please refer to [this page](/docs/concepts/services-networking/service/#loadbalancer) for the details.
139+
140+
{{< /note >}}
141+
-->
142+
注意:`type=LoadBalancer` 服务由外部云服务提供商提供支持,本例中不包含此部分,详细信息请参考[此页](/docs/concepts/services-networking/service/#loadbalancer)
143+
144+
<!--
145+
{{< note >}}
146+
147+
If the external IP address is shown as \<pending\>, wait for a minute and enter the same command again.
148+
149+
{{< /note >}}
134150
-->
135151
注意:如果外部 IP 地址显示为 \<pending\>,请等待一分钟再次输入相同的命令。
136152

0 commit comments

Comments
 (0)