@@ -1099,12 +1099,6 @@ Now, watch the job status again:
1099
1099
1100
1100
The output shows that the job was successfully executed.
1101
1101
1102
- The completed pod is not shown in the `kubectl get pods` command. Instead it can be shown by passing an additional option as shown below:
1103
-
1104
- $ kubectl get pods --show-all
1105
- NAME READY STATUS RESTARTS AGE
1106
- wait-lk49x 0/1 Completed 0 1m
1107
-
1108
1102
To delete the job, you can run this command
1109
1103
1110
1104
$ kubectl delete -f job.yaml
@@ -1184,18 +1178,7 @@ In another terminal window, watch the status of pods created:
1184
1178
wait-ngrgl 0/1 Completed 0 21s
1185
1179
wait-6l22s 0/1 Completed 0 21s
1186
1180
1187
- After all the pods have completed, `kubectl get pods` will not show the list of completed pods. The command to show the list of pods is shown below:
1188
-
1189
- $ kubectl get pods -a
1190
- NAME READY STATUS RESTARTS AGE
1191
- wait-6l22s 0/1 Completed 0 1m
1192
- wait-f7kgb 0/1 Completed 0 2m
1193
- wait-jbdp7 0/1 Completed 0 2m
1194
- wait-ngrgl 0/1 Completed 0 1m
1195
- wait-r5v8n 0/1 Completed 0 2m
1196
- wait-smp4t 0/1 Completed 0 2m
1197
-
1198
- Similarly, `kubectl get jobs` shows the status of the job after it has completed:
1181
+ `kubectl get jobs` shows the status of the job after it has completed:
1199
1182
1200
1183
$ kubectl get jobs
1201
1184
NAME DESIRED SUCCESSFUL AGE
0 commit comments