From 3e1611b4cc0738922a060e4936127214a9521e27 Mon Sep 17 00:00:00 2001 From: Guangze GAO Date: Thu, 28 May 2020 10:50:48 +0800 Subject: [PATCH] Update Chinese page expose-external-ip-address.md --- .../expose-external-ip-address.md | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/content/zh/docs/tutorials/stateless-application/expose-external-ip-address.md b/content/zh/docs/tutorials/stateless-application/expose-external-ip-address.md index 655f673b06..b5f9eccfb0 100644 --- a/content/zh/docs/tutorials/stateless-application/expose-external-ip-address.md +++ b/content/zh/docs/tutorials/stateless-application/expose-external-ip-address.md @@ -75,7 +75,11 @@ external IP address. --> 1. 在集群中运行 Hello World 应用程序: - kubectl run hello-world --replicas=5 --labels="run=load-balancer-example" --image=gcr.io/google-samples/node-hello:1.0 --port=8080 +{{< codenew file="service/load-balancer-example.yaml" >}} + +```shell +kubectl apply -f https://k8s.io/examples/service/load-balancer-example.yaml +``` + 注意:`type=LoadBalancer` 服务由外部云服务提供商提供支持,本例中不包含此部分,详细信息请参考[此页](/docs/concepts/services-networking/service/#loadbalancer) + + 注意:如果外部 IP 地址显示为 \,请等待一分钟再次输入相同的命令。