Changing image of kubernetes job Changing image of kubernetes job kubernetes kubernetes

Changing image of kubernetes job


I guess you are probably using an incorrect kubernetes resource . Job is a immutable Pod that runs to completion , you cannot update it . As per Kubernetes documentation ..

Say Job old is already running. You want existing Pods to keep running, but you want the rest of the Pods it creates to use a different pod template and for the Job to have a new name. You cannot update the Job because these fields are not updatable. Therefore, you delete Job old but leave its pods running, using kubectl delete jobs/old --cascade=false.

If you intend to update an image you should either use Deployment or Replication controller which supports updates