I am running a CronJob on Kubernetes (version 1.20). These are the relevant details:
concurrencyPolicy: Forbid
backoffLimit: 6
- command:
- /bin/bash
- -c
- |
exit 1;
restartPolicy: OnFailure
When I run the job, the pod that spins up restarts up to six times and then terminates. I describe the job, expecting to see that it failed, but instead I see this line:
Pods Statuses: 0 Running / 0 Succeeded / 0 Failed
I am really expecting to see this instead:
Pods Statuses: 0 Running / 0 Succeeded / 1 Failed
I have played around with the backoffLimit, but it was to no avail. The other settings need to be what they are at the moment.