Skip to content

Latest commit

 

History

History
 
 

CronJob

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Cron Job

CronJob is meant for performing regular scheduled actions such as backups, report generation, and so on

Demo

cd k8sHub
kubectl apply -f k8s101/CronJob/cron_sample.yaml

Cron syntax

# ┌───────────── 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
# │ │ │ │ │
# │ │ │ │ │
# * * * * *

Cleanup

cd k8sHub
kubectl delete -f k8s101/CronJob/cron_sample.yaml