CronJob is meant for performing regular scheduled actions such as backups, report generation, and so on
cd k8sHub
kubectl apply -f k8s101/CronJob/cron_sample.yaml
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday)
# │ │ │ │ │ OR sun, mon, tue, wed, thu, fri, sat
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
cd k8sHub
kubectl delete -f k8s101/CronJob/cron_sample.yaml