<p>I have Cron name &quot;cronX&quot; and a Job name &quot;JobY&quot;
how can I configure kubernetes to run &quot;JobY&quot; after &quot;cronX&quot; finished?</p>
<p>I know I can do it using API call from &quot;cronX&quot; to start &quot;JobY&quot; but I don't want to do that using an API call.</p>
<p>Is there any Kubernetes configuration to schedule this?</p>

larry ckey
<p><code>is it possible that this pod will contain 2 containers and one of them will run only after the second container finish?</code></p>
<p>Negative, more details <a href="https://github.com/kubernetes/kubernetes/issues/1996" rel="nofollow noreferrer">here</a>. If you only have 2 containers to run, you can place the first one under <code>initContainers</code> and another under <code>containers</code> and schedule the pod.</p>
<p>No built-in K8s configuration available to do workflow orchestration. You can try Argo <a href="https://argoproj.github.io/argo-workflows/cron-workflows/" rel="nofollow noreferrer">workflow</a> to do this.</p>
