<p>Goal is to terminate the pod after completion of Job.
This is my yaml file. Currently, my pod status is <strong>completed</strong> after running the job.</p>
<pre><code>apiVersion: batch/v1
kind: Job
metadata:
  # Unique key of the Job instance
  name: example-job
spec:
  template:
    metadata:
      name: example-job
    spec:
      containers:
      - name: container-name
        image: my-img
        command: [&quot;python&quot;, &quot;main.py&quot;]
      # Do not restart containers after they exit
      restartPolicy: Never
  # of retries before marking as failed.
  backoffLimit: 4 
</code></pre>

<p>A job of a pod basically terminates itself after the main container of that pod finishes successful. If it returns a failure error code it will retry as many times as you specified in your backoffLimit.</p>
<p>So it seems as if your container does not terminate after it finishes whatever job it is supposed to do. Without knowing anything about your job image I cannot tell you what you need to do exactly.
However, it seems as if you need to adapt your main.py to properly exit after it has done what it is supposed to do.</p>
