Hands-on task
CronJob on a schedule
Prepare in /root/cronjob.yaml a CronJob cleanup: every 15 minutes it runs the image busybox:1.36 with the command sh -c "echo clean". You don't have to write it by hand — it's easier to generate it with a kubectl command using --dry-run=client -o yaml. Open the result in the Editor tab and find where the schedule and the command ended up in the manifest.
- kubernetes
- cronjob
- kubectl
- cron
- dry-run