Skip to content

GPU Worker Nodes ​

The ESC Kubernetes Service supports GPU-accelerated worker nodes equipped with NVIDIA A16 GPUs. GPU worker nodes are created as regular MachineDeployments using GPU-enabled instance types.

Prerequisites ​

  • GPU worker nodes are only supported with Ubuntu 24.04 (Noble) as the operating system.
  • The NVIDIA GPU Operator should be installed from the Application Catalog to fully utilize the GPU hardware.

⚠️ Important

GPU instance types are only compatible with Ubuntu 24.04 (Noble). Other operating systems are not supported for GPU workloads.

⚠️ Regional limitations

GPU based worker nodes are currently only available in the Region East and the Availability Zone ZOI.

⚠️ Reduced Availability guarantees

Due to technical limitations VMs with GPUs can not be live-migrated. To migrate those nodes during a maintenance window, they will be power cycled to be moved to a different physical host.

Accordingly the guaranteed availability of GPU worker nodes is reduced to 99.0%

Available GPU Instance Types ​

The following GPU instance types are available for creating GPU-enabled MachineDeployments:

Instance TypeGPUsvCPUsMemoryRegion/Zones
gpu-1a16.small1x NVIDIA A16648 GiEast/ZOI
gpu-1a16.large1x NVIDIA A161090 GiEast/ZOI
gpu-2a16.small2x NVIDIA A161296 GiEast/ZOI
gpu-2a16.large2x NVIDIA A1620180 GiEast/ZOI

💡 Naming Convention

The instance type name follows the pattern gpu-<number of GPUs><GPU type>.<size>. For example, gpu-2a16.large provides 2 NVIDIA A16 GPUs with a large CPU and memory allocation.

Creating a GPU MachineDeployment ​

To create a GPU-enabled MachineDeployment:

  1. Navigate to your cluster in the KKP Dashboard.
  2. Click "Add Machine Deployment".
  3. In the Instance Type selection, choose one of the GPU instance types (e.g. gpu-1a16.small). KS GPU InstanceTypes
  4. Ensure the Operating System is set to Ubuntu 24.04 (Noble).
  5. Select a subnet for the desired availability zone.
  6. Set the desired replica count and save.

💡 Tainting nodes

If you want to limit the workload being scheduled to the GPU worker nodes you can use a nvidia.com/gpu=true:NoSchedule taint while creating the MachineDeployment.

The Operator is configured with a toleration for this taint which will ensure that all necessary components are still deployed.

💡 Startup Time

GPU worker nodes may take longer to start compared to regular worker nodes. When a GPU VM is started, the NVIDIA drivers are automatically installed during the boot process, which adds additional provisioning time. This is expected behavior.

Installing the NVIDIA GPU Operator ​

To make full use of the GPU hardware on your worker nodes, install the NVIDIA GPU Operator from the Application Catalog. The GPU Operator automates the management of all NVIDIA software components needed to provision and run GPU workloads.

To install the Application follow the steps described in Steps to install an Application

In the list of Applications select the NVIDIA GPU Operator, and install it using the default values.

KS NVIDIA GPU Operator Application

💡 Verification

After installing the GPU Operator, you can verify that the GPU nodes are properly configured by checking for GPU resources on the nodes:

bash
kubectl get nodes -o json | jq '.items[] | select(.status.capacity."nvidia.com/gpu" != null) | {name: .metadata.name, gpus: .status.capacity."nvidia.com/gpu"}'

Or by checking that the GPU Operator pods are running:

bash
kubectl get pods -n nvidia-gpu-operator

On each Node where a GPU is detected, the Operator will deploy a nvidia-cuda-validator pod after all management pods are started. You can check the logs of each pod to confirm whether the tests passed successfully.

bash
kubectl -n nvidia-gpu-operator get pods -l app=nvidia-cuda-validator

Running GPU Workloads ​

Once the GPU Operator is installed and the GPU nodes are ready, you can schedule GPU workloads by requesting GPU resources in your Pod specifications:

yaml
apiVersion: v1
kind: Pod
metadata:
  name: gpu-test
spec:
  containers:
  - name: cuda-container
    image: nvcr.io/nvidia/k8s/cuda-sample:vectoradd-cuda11.7.1-ubuntu20.04
    resources:
      limits:
        nvidia.com/gpu: 1
  restartPolicy: OnFailure

💡 GPU Scheduling

Pods that request nvidia.com/gpu resources will automatically be scheduled on nodes that have available GPUs. If no GPU nodes are available, the Pod will remain in Pending state until a GPU node becomes ready.

Scaling GPU Nodes on Demand ​

If your GPU workloads do not run 24/7, you can use the Cluster-Autoscaler to scale GPU nodes from zero when needed and back to zero when idle. This avoids costs for unused GPU resources.

The general mechanism for scaling from/to zero is described in the Node Scaling documentation. This section covers the GPU-specific configuration.

GPU-specific taint ​

Use the nvidia.com/gpu=true:NoSchedule taint on your GPU MachineDeployment. This ensures only GPU workloads trigger a scale-up, and the NVIDIA GPU Operator is already configured with a toleration for this taint.

KS MachineDeployment Taint

GPU-specific annotations ​

In addition to the standard capacity annotations (cpu, memory, taints) described in the scaling documentation, GPU MachineDeployments require these additional annotations so the Cluster-Autoscaler knows about the GPU resources when no node is running:

  • capacity.cluster-autoscaler.kubernetes.io/gpu-type: nvidia.com/gpu
  • capacity.cluster-autoscaler.kubernetes.io/gpu-count: <1 or 2 depending on the InstanceType>

Example: Full annotation set for a gpu-2a16.large MachineDeployment ​

capacity.cluster-autoscaler.kubernetes.io/taints: nvidia.com/gpu=true:NoSchedule
capacity.cluster-autoscaler.kubernetes.io/gpu-type: nvidia.com/gpu
capacity.cluster-autoscaler.kubernetes.io/gpu-count: 2
capacity.cluster-autoscaler.kubernetes.io/cpu: 20
capacity.cluster-autoscaler.kubernetes.io/memory: 180Gi