I created a k8s CronJob with the following schedule (run every minute):
schedule: "*/1 * * * *"
I see my CronJob created:
NAMESPACE NAME READY STATUS RESTARTS AGE
job-staging job-1593017820-tt2sn 2/3 Running 0 10m
My job simply does a Printf to the log, one time, then exits.
When I do a kubernetes get cronjob I see:
NAMESPACE NAME READY STATUS RESTARTS AGE
job-staging job */1 * * * * False 1 19m 19m
When I look at the logs, it looks like it only ran once, which was the first run. Do I need to prevent my program from exiting?
I assumed k8s would restart my program, but maybe that's a wrong assumption.