Question on CronJob

I got a question in the exam which is as below

  1. Create a cron job which runs every 2 minutes, … set failures =3 and also make sure the pod terminates exactly after 8 seconds.
  2. Also as a sample run one job on this cron.

not sure how to set failure and terminate ( is it via command ?) and also what is the meaning on 2nd statement.

The cronjob’s yaml has a block called the jobTemplate; you set these items by adding lines to that block. See this page in the docs.