I have a
cronjob.spec.jobTemplate.spec.template.spec.restartPolicy=Never. And I am using
kubectl create job --from=cronjob/my_cronjob my_test for manually starting an instance outside the schedule.
What I am observing is that subsequent instances of the resulting
pod start after the first one has resulted in an error. The jobs
job.spec.template.spec.restartPolicy and the pods'
pod.spec.restartPolicy are also
Never (as expected), so what could bring these restarts about?