Skip to content

Commit 989dbbf

Browse files
authored
Merge pull request #26211 from ydFu/update-init-containers
Update init-containers.md
2 parents 7675ae2 + c27dbd6 commit 989dbbf

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

content/zh/docs/concepts/workloads/pods/init-containers.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ You can start this Pod by running:
241241
```shell
242242
kubectl apply -f myapp.yaml
243243
```
244+
<!--
245+
The output is similar to this:
246+
-->
247+
输出类似于:
244248
```
245249
pod/myapp-pod created
246250
```
@@ -253,6 +257,10 @@ And check on its status with:
253257
```shell
254258
kubectl get -f myapp.yaml
255259
```
260+
<!--
261+
The output is similar to this:
262+
-->
263+
输出类似于:
256264
```
257265
NAME READY STATUS RESTARTS AGE
258266
myapp-pod 0/1 Init:0/2 0 6m
@@ -266,7 +274,10 @@ or for more details:
266274
```shell
267275
kubectl describe -f myapp.yaml
268276
```
269-
277+
<!--
278+
The output is similar to this:
279+
-->
280+
输出类似于:
270281
```
271282
Name: myapp-pod
272283
Namespace: default
@@ -353,6 +364,10 @@ To create the `mydb` and `myservice` services:
353364
```shell
354365
kubectl create -f services.yaml
355366
```
367+
<!--
368+
The output is similar to this:
369+
-->
370+
输出类似于:
356371
```
357372
service "myservice" created
358373
service "mydb" created
@@ -367,7 +382,10 @@ Pod moves into the Running state:
367382
```shell
368383
kubectl get -f myapp.yaml
369384
```
370-
385+
<!--
386+
The output is similar to this:
387+
-->
388+
输出类似于:
371389
```
372390
NAME READY STATUS RESTARTS AGE
373391
myapp-pod 1/1 Running 0 9m

0 commit comments

Comments
 (0)