Merge pull request #25871 from ydFu/patch-1

Add content in init-containers.md
This commit is contained in:
Kubernetes Prow Robot
2021-01-08 10:02:29 -08:00
committed by GitHub
@@ -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/)