I'm working with Kubernetes 1.26 on the server side (EKS) and kubectl client 1.27.1.
I have a job define in this way:
apiVersion: batch/v1
kind: Job
metadata:
name: build
spec:
template:
spec:
restartPolicy: Never
volumes:
.....
containers:
- name: build-tool
....
My pod dies for OOMKilled or some other reason, then Kubernetes launches another pod. Why?
It is supposed not to be restarted.
Related reading: