You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/concepts/workloads/pods/init-containers.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,6 +133,7 @@ You can start this Pod by running:
133
133
```shell
134
134
kubectl apply -f myapp.yaml
135
135
```
136
+
The output is similar to this:
136
137
```
137
138
pod/myapp-pod created
138
139
```
@@ -141,6 +142,7 @@ And check on its status with:
141
142
```shell
142
143
kubectl get -f myapp.yaml
143
144
```
145
+
The output is similar to this:
144
146
```
145
147
NAME READY STATUS RESTARTS AGE
146
148
myapp-pod 0/1 Init:0/2 0 6m
@@ -150,6 +152,7 @@ or for more details:
150
152
```shell
151
153
kubectl describe -f myapp.yaml
152
154
```
155
+
The output is similar to this:
153
156
```
154
157
Name: myapp-pod
155
158
Namespace: default
@@ -224,6 +227,7 @@ To create the `mydb` and `myservice` services:
224
227
```shell
225
228
kubectl apply -f services.yaml
226
229
```
230
+
The output is similar to this:
227
231
```
228
232
service/myservice created
229
233
service/mydb created
@@ -235,6 +239,7 @@ Pod moves into the Running state:
235
239
```shell
236
240
kubectl get -f myapp.yaml
237
241
```
242
+
The output is similar to this:
238
243
```
239
244
NAME READY STATUS RESTARTS AGE
240
245
myapp-pod 1/1 Running 0 9m
@@ -319,11 +324,9 @@ reasons:
319
324
320
325
321
326
322
-
323
327
## {{% heading "whatsnext" %}}
324
328
325
329
326
330
* 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)
327
331
* Learn how to [debug init containers](/docs/tasks/debug-application-cluster/debug-init-containers/)
0 commit comments