From 12d8e01ce9de9b322cf5311e15b2f10b0d5a3f11 Mon Sep 17 00:00:00 2001 From: shaggyyy2002 Date: Sat, 26 Mar 2022 21:46:19 +0530 Subject: [PATCH] =?UTF-8?q?Incorrect=20or=20out=20of=20date=20script=20loc?= =?UTF-8?q?alization=20in=20init=20=E5=AE=B9=E5=99=A8=20concept=20#32466?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/zh/docs/concepts/workloads/pods/init-containers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/zh/docs/concepts/workloads/pods/init-containers.md b/content/zh/docs/concepts/workloads/pods/init-containers.md index ff084da251..d57f3624e9 100644 --- a/content/zh/docs/concepts/workloads/pods/init-containers.md +++ b/content/zh/docs/concepts/workloads/pods/init-containers.md @@ -183,7 +183,7 @@ Here are some ideas for how to use init containers: * 等待一个 Service 完成创建,通过类似如下 shell 命令: ```shell - for i in {1..100}; do sleep 1; if dig myservice; then exit 0; fi; exit 1 + for i in {1..100}; do sleep 1; if dig myservice; then exit 0; fi; done; exit 1 ``` * 注册这个 Pod 到远程服务器,通过在命令中调用 API,类似如下: