Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update init-containers.md #26211

Merged
merged 1 commit into from
Jan 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions content/zh/docs/concepts/workloads/pods/init-containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ You can start this Pod by running:
```shell
kubectl apply -f myapp.yaml
```
<!--
The output is similar to this:
-->
输出类似于:
```
pod/myapp-pod created
```
Expand All @@ -253,6 +257,10 @@ 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
Expand All @@ -266,7 +274,10 @@ or for more details:
```shell
kubectl describe -f myapp.yaml
```
<!--
The output is similar to this:
-->
输出类似于:
```
Name: myapp-pod
Namespace: default
Expand Down Expand Up @@ -353,6 +364,10 @@ To create the `mydb` and `myservice` services:
```shell
kubectl create -f services.yaml
```
<!--
The output is similar to this:
-->
输出类似于:
```
service "myservice" created
service "mydb" created
Expand All @@ -367,7 +382,10 @@ 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
Expand Down