<p>Is it possible to launch a pod in K8s cluster named B from a pod running in K8 cluster C.</p>

Amit Kumar
<p>Yes. It's a hacky way but it's possible.</p>

<p>In addition, the guidelines are generally the same as in this answer:</p>

<p><a href="https://stackoverflow.com/questions/52901435/how-i-create-new-namespace-in-kubernetes/52901519#52901519">How I create new namespace in Kubernetes</a></p>

<p>In a pod in cluster B you can call:</p>

<pre><code>$ kubectl apply -f  &lt;your pod-definition&gt;
</code></pre>

<p>Which creates a pod in cluster C, and <code>~/.kube/config</code> points to cluster C.</p>

<p>You can also set up a role and the whole RBAC and issue a <code>curl</code> from cluster B to cluster B.</p>

<pre><code>$ curl -k -H -X POST -H 'Content-Type: application/json' \
                     -H 'Authorization: Bearer &lt;token&gt;' \
                     https://$KUBERNETES_SERVICE_HOST:6443/api/v1/namespaces/namespace/pods -d '
{
    "apiVersion": "v1",
    "kind": "Pod",
    "metadata": {
        "name": "mypod"
        "namespace": "mynamespace",

    },
    "spec": {
        "containers": [
           {
              ...
           }
        ]
        ...
     }
}'
</code></pre>

<p>Or also use a library like <a href="https://github.com/kubernetes/client-go" rel="nofollow noreferrer">client-go</a> or/and <a href="https://github.com/kubernetes-client/python" rel="nofollow noreferrer">kubernetes-client/python</a>.</p>
