@@ -1099,12 +1099,6 @@ Now, watch the job status again:
10991099
11001100The output shows that the job was successfully executed.
11011101
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-
11081102To delete the job, you can run this command
11091103
11101104 $ kubectl delete -f job.yaml
@@ -1184,18 +1178,7 @@ In another terminal window, watch the status of pods created:
11841178 wait-ngrgl 0/1 Completed 0 21s
11851179 wait-6l22s 0/1 Completed 0 21s
11861180
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:
11991182
12001183 $ kubectl get jobs
12011184 NAME DESIRED SUCCESSFUL AGE
0 commit comments