From 4ff57afdea698431fe78a807dd2d31dd96229ae3 Mon Sep 17 00:00:00 2001 From: Ader Date: Wed, 30 Dec 2020 20:43:57 +0800 Subject: [PATCH] Add content in init-containers.md Add description to make it easy to read. * Distinguish between 'command'and 'output'. --- content/en/docs/concepts/workloads/pods/init-containers.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/content/en/docs/concepts/workloads/pods/init-containers.md b/content/en/docs/concepts/workloads/pods/init-containers.md index 08d6e0fa0f..44f23b6ac0 100644 --- a/content/en/docs/concepts/workloads/pods/init-containers.md +++ b/content/en/docs/concepts/workloads/pods/init-containers.md @@ -133,6 +133,7 @@ You can start this Pod by running: ```shell kubectl apply -f myapp.yaml ``` +The output is similar to this: ``` pod/myapp-pod created ``` @@ -141,6 +142,7 @@ And check on its status with: ```shell kubectl get -f myapp.yaml ``` +The output is similar to this: ``` NAME READY STATUS RESTARTS AGE myapp-pod 0/1 Init:0/2 0 6m @@ -150,6 +152,7 @@ or for more details: ```shell kubectl describe -f myapp.yaml ``` +The output is similar to this: ``` Name: myapp-pod Namespace: default @@ -224,6 +227,7 @@ To create the `mydb` and `myservice` services: ```shell kubectl apply -f services.yaml ``` +The output is similar to this: ``` service/myservice created service/mydb created @@ -235,6 +239,7 @@ Pod moves into the Running state: ```shell kubectl get -f myapp.yaml ``` +The output is similar to this: ``` NAME READY STATUS RESTARTS AGE myapp-pod 1/1 Running 0 9m @@ -319,11 +324,9 @@ reasons: - ## {{% heading "whatsnext" %}} * Read about [creating a Pod that has an init container](/docs/tasks/configure-pod-container/configure-pod-initialization/#create-a-pod-that-has-an-init-container) * Learn how to [debug init containers](/docs/tasks/debug-application-cluster/debug-init-containers/) -