<p>I need to execute a job create from cronjob in kubernetes.
Manualy I can run it like this:</p>
<pre><code>kubectl create job manual-job --from=cronjob/some-cronjob
</code></pre>
<p>Though I'm not sure how to translate this to yaml.</p>
<p><a href="https://kubernetes.io/docs/concepts/workloads/controllers/job/" rel="nofollow noreferrer">Probably</a> I need to put a <strong>from:</strong> section in the spec ,but I'm not sure how.</p>

<pre><code>kubectl create job manual-job --from=cronjob/some-cronjob
</code></pre>
<p>You can use above method only to launch a job execution of a declared cronjob and whats more important(unfortunately for you) - you are able to that <strong>only using kubectl cli</strong>.</p>
<p>During research I also found my <a href="https://stackoverflow.com/a/54367455/9929015">answer</a> on a similar question <a href="https://stackoverflow.com/questions/54366194/kubernetes-run-job-using-cronjob">Kubernetes Run job using CronJob
</a>. There is also try in that example to achieve very similar thing as you trying to rich(but vise-versa. In the provided example there is a try to create cronjob bases on already existed job)..</p>
<pre><code>  jobTemplate:
    spec:
      labelSelector:
        name: pi # refer to the job created above
</code></pre>
<p>Both of your questions make sense, it would be very useful to have such an option, but, as I said in the beginning - that's currently not possible.</p>
<p>For test purposed - use provided command.</p>
<p>For regular usage - currently have no idea how to help you. Hope future releases will add this feature</p>
