I have a job with restartPolicy: "Never" which ends with "Error"
With Status : Error this job should not restart.
However, a new pod is created again and again each time the previous job fails :
$ kubectl get pods
kafka-pvbqk 0/1 Error 0 2m19s
kafka-ttt95 0/1 Error 0 109s
kafka-7fqgl 0/1 Error 0 69s
kafka-rrmlk 0/1 PodInitializing 0 2s
I know first thing should be to fix the error but I also want to understand why the pod restarts and how to avoid that ?
Thanks