Kubernetes Simulator

intermediate · ~10 min

Every night

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.

Objectives

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

Best on a computer with a keyboard. It works on a phone, with shortcuts under the terminal.