How to spwan pods on diffrent k8s cluster

Hi, I have a JupyterHub instance deployed on an OpenShift (Kubernetes) cluster, let’s call it cluster_cpu. I also have another cluster, cluster_gpu, and I want to spawn pods on cluster_gpu directly from the JupyterHub running on cluster_cpu.

Is there a way to achieve this without deploying a separate JupyterHub instance on cluster_gpu? If so, could you guide me on how to configure it?

JupyterHub is designed to be very customisable, so you could write your own spawner, perhaps using KubeSpawner as inspiration.

I think that this will be cool feature if we can expand the kubeSpawner to do that.

I saw an open issue about that subject: