Skip to main content
Deploy a GPU-backed Kubernetes cluster on AION, install NVIDIA GPU Operator + KubeRay Operator + Ray Cluster from Marketplace, then apply the RayService Stable Diffusion example and validate it by port-forwarding and sending a request.

Step 1: Create a Kubernetes cluster with GPUs

  1. In the left navigation, click Kubernetes.
  2. Click Create K8s Cluster.
  3. Select a region with GPU availability that fits your needs.
  4. Create or select a project.
  5. Configure the cluster (cluster name, nodes, image, SSH key, version, etc.).
  6. Click Launch and wait until the cluster status is ready/active.
  7. Copy KubeConfig from the cluster card/details and setup the kubeconfig file.
Recommended: Have at least one GPU-capable node available for Stable Diffusion serving.

Step 2: Install required Marketplace apps

Go to Kubernetes → Marketplace and install, in this order:

2.1 Install NVIDIA GPU Operator

  1. Open NVIDIA GPU OperatorView Details
  2. Choose Existing Cluster = your cluster
  3. Click Deploy Application
Verify:

2.2 Install KubeRay Operator

  1. Open KubeRay OperatorView Details
  2. Choose Existing Cluster
  3. Click Deploy Application
Verify CRDs:

2.3 Install Ray Cluster

  1. Open Ray ClusterView Details
  2. Choose Existing Cluster
  3. Click Deploy Application
Verify Ray is present:

Step 3: Install the Stable Diffusion RayService

Apply the example RayService manifest:
Check the RayService:
Wait until the RayService Ready condition becomes True.

Step 3: Forward the Serve port

First, find the service:
Then port-forward the serve service:
Keep this terminal running.

Step 4: Run the Gradio client

Download the request script
Install dependencies
Start the app
Gradio will print a local URL (typically http://127.0.0.1:7860). Open it in your browser to generate images.