Run, shard, retry and schedule batch work
- 14 min
- 7 steps
- Pods and workloads
Steps
0 of 7 done
Run a one-off Job, fan an Indexed Job out wider, watch backoffLimit stop a failing migration, and drive a CronJob by hand.
Step 1 of 7
Create a Job named
hellothat runsbusybox:1.37, prints a greeting and exits. Wait until it reports Complete.Checked against the cluster as it changes.
Step 2, not started: Read
shard.yaml, an Indexed Job with six completions, and apply it. List its pods with a column for each pod's completion index.Step 3, not started: Two pods at a time is too slow. Let
shardrun three pods at once without deleting or recreating it, and wait for all six indexes to complete.Step 4, not started: Apply
migrate.yaml. Its container exits with code 3 every time. Watch the pods until the Job stops creating new ones, and count how many it tried.Step 5, not started: Find the reason the Job controller gives for marking
migratefailed.Step 6, not started: The
nightly-reportCronJob runs at 02:00 Berlin time. Run it once immediately, as a Job namedreport-nowbuilt from the CronJob's template, and wait for it to complete.Step 7, not started: Stop
nightly-reportfrom creating any more Jobs during a maintenance window, without deleting it.
Enter runs the command. Tab completes, and the arrow keys recall earlier commands. Control C stops a watch. On an empty line, or after Escape, Tab moves focus out of the terminal.