Anyone know how to avoid piling up cronjobs when i...
# general
h
Anyone know how to avoid piling up cronjobs when it gets an
ImagePullBackOff
error? This is the scenario 1. Cron job runs every minute 2. The pod was set to pull
Always
, unfortunately. Now fixed. 3. A cleanup job deleted the image from the registry 4. Now the pod fails with
ImagePullBackOff
5. Every minute, a new job/pod is kicked off 6. The pods with
ImagePullBackOff
never go away, and overnight I got 600 failed pods, and a new one every minute. I looked at
backOffLimit
but looks like that only applies if the pod gets into a failed state. In this case the status is always
Waiting