From c27dbd66733660141380d0e13eeb991bce731d85 Mon Sep 17 00:00:00 2001 From: ydFu Date: Sat, 23 Jan 2021 19:53:03 +0800 Subject: [PATCH] Update init-containers.md * sync with english version in init-containers.md Signed-off-by: ydFu --- .../workloads/pods/init-containers.md | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/content/zh/docs/concepts/workloads/pods/init-containers.md b/content/zh/docs/concepts/workloads/pods/init-containers.md index 449d14bba05a2..692928099b0d9 100644 --- a/content/zh/docs/concepts/workloads/pods/init-containers.md +++ b/content/zh/docs/concepts/workloads/pods/init-containers.md @@ -241,6 +241,10 @@ You can start this Pod by running: ```shell kubectl apply -f myapp.yaml ``` + +输出类似于: ``` pod/myapp-pod created ``` @@ -253,6 +257,10 @@ And check on its status with: ```shell kubectl get -f myapp.yaml ``` + +输出类似于: ``` NAME READY STATUS RESTARTS AGE myapp-pod 0/1 Init:0/2 0 6m @@ -266,7 +274,10 @@ or for more details: ```shell kubectl describe -f myapp.yaml ``` - + +输出类似于: ``` Name: myapp-pod Namespace: default @@ -353,6 +364,10 @@ To create the `mydb` and `myservice` services: ```shell kubectl create -f services.yaml ``` + +输出类似于: ``` service "myservice" created service "mydb" created @@ -367,7 +382,10 @@ Pod moves into the Running state: ```shell kubectl get -f myapp.yaml ``` - + +输出类似于: ``` NAME READY STATUS RESTARTS AGE myapp-pod 1/1 Running 0 9m