Batch pipeline, mission 4 of 6

Every night

intermediate, about 10 minutes, in the Kubernetes Simulator

Start mission

Opens once you pass Many hands.

The briefing

The export should run every night without anyone typing anything. A CronJob makes a Job on a schedule, in cron's five fields: minute, hour, day of month, month, day of week. 0 2 * * * is 2am daily.

Nobody wants to wait until 2am, so here */1 * * * * — every minute — stands in for it. nightly.yaml is almost ready: give it the schedule.

What you'll do

  • Create the CronJob nightly-export, scheduled every minute
  • See a scheduled run complete
  • Bonus star: Don't wait: start a run now with kubectl create job --from=cronjob/nightly-export

The mission checks the cluster, not your keystrokes: any fix that works, passes.

More Batch pipeline missions

  1. 1. Run it once
  2. 2. When a job fails
  3. 3. Many hands
  4. 4. Every night
  5. 5. Pile-up
  6. 6. The 2am failure
Every Kubernetes Simulator mission

AboutGuidesCompare

PrivacyCookiesTerms

Hackademy is a trading name of Mather Software Ltd, registered in England and Wales, company number 17443861. ICO registration ZC256628.

Contact: support@mathersoftware.com© 2026 Mather Software Ltd