<p>I have the following doubt, let's say I have a kubernetes pod A with n=1 replicas, and I want that every x minutes it will create a new pod B of type "Job", I can create a job pod from kubectl without problems, but how can I make a pod be instantiated from another pod ?</p>

<p>I could try to use kubectl on the parent pod but I don't think it's the most elegant way to do it.</p>

jmhostalet
<p>In the pod you could use any supported <a href="https://kubernetes.io/docs/reference/using-api/client-libraries/" rel="nofollow noreferrer">kubernetes client library</a> to call REST API exposed by kubernetes API server to create a pod.</p>

<p>The client library need to be authenticated to be to call the kubernetes API. A service account can be used by the client library for that and the service account need to have RBAC to be to be able to create a pod by calling kubernetes API server.</p>

<p>Internally kubectl also calls the REST API exposed by kubernetes API server when kubectl is used to create a pod.</p>
