<p>I was wondering if there are any ways to spin up another job, on the event that a pod controlled by a job fails, which would update the job controlling that pod’s memory request value, maybe double it, before the pod restarts?</p>
<p>I’ve looked up PreStop container lifestyle hooks, operators, etc. Right now the best solution seems to be a custom controller that runs over all jobs and if they are in Reboot state or something like that and have a certain label then it doubles their memory request.</p>

<p>You could yuse <a href="https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler" rel="nofollow noreferrer">Vertical Pod Autoscaler</a> in <code>Auto</code> or <code>Recreate</code> mode.<br />
It support Jobs, CronJobs, as well as Deployments.</p>
<p>Please be aware of <a href="https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler#known-limitations" rel="nofollow noreferrer">limitations</a>, such as it cannot be used with HPA on CPU or memory, and VPA can't evict pods which are not run under a controller.</p>
