Testing GPU Deployment Flows on Kubernetes Without GPUs
A model server that uses a GPU still passes through several deployment stages. It requests resources, receives a node assignment, loads a model, and handles requests. Resource requests and the deployment flow can be tested before GPU hardware is available.
Advertising simulated GPU resources on CPU nodes and running a CPU model server lets you inspect both the deployment configuration that requests GPUs and the actual response path. Each result needs a clear interpretation. The GPU count used for scheduling and the device used for model computation are separate pieces of information.
What a fake GPU stands in for
Section titled “What a fake GPU stands in for”The Kubernetes scheduler compares resources advertised by nodes with those requested by Pods. It treats GPUs as extended resource names and quantities, such as nvidia.com/gpu. Connecting those resources to physical devices is the responsibility of the device plugin, kubelet, and container runtime.
Fake GPU Operator is a development and testing tool that simulates GPU resources on CPU nodes. The device plugin approach used here supplies synthetic device resources for the scheduler to consume. The model servers used images and execution settings that support running on CPUs.
The setup has two roles. Fake GPUs supply the resource information needed for placement, while CPU model servers process real model requests.
| Component | Role | What to observe |
|---|---|---|
| Simulated GPU resources | Provide the conditions for scheduling GPU requests | Node resource advertisement and Pod placement |
| CPU model server | Load models and run inference | Process startup and real responses |
| Service and request path | Forward requests to the deployed model server | Requests reaching the model server in the same Pod |
Distinguish node labels from Allocatable
Section titled “Distinguish node labels from Allocatable”Node labels are selection criteria. A label such as accelerator=example-gpu can be used by a nodeSelector or affinity rule. The GPU quantity available to scheduling must also appear in the node’s resource information.
A device plugin reports device information to kubelet, which reflects it in the node’s Capacity and Allocatable. The following container spec fragment requests one ordinary GPU resource.
resources: limits: nvidia.com/gpu: 1When only GPU limits are specified, the same value is used for requests. If both are specified, their values must match. CPU and memory requests are set separately according to the model server’s needs.
Allocatable also differs from the quantity remaining for a new Pod, because existing Pods already have resource requests. For example, an Allocatable value of 2 leaves no room for another request if two Pods each request one. When placement fails, inspect both the advertised quantity and the requests of existing Pods.
Place from resource information, execute on CPUs
Section titled “Place from resource information, execute on CPUs”Separating the placement decision from inference execution makes the behavior clear. First, the scheduler selects a CPU worker that satisfies the GPU resource request. A CPU model server runs in the assigned Pod and then handles requests arriving through its Service.
With KServe, a model serving declaration becomes resource requests and runtime settings for a predictor Pod. You can inspect the resource request seen by the scheduler and the execution device used by the model process separately. The relationship between KServe and its child resources is covered in the KServe configuration article.
Case: ordinary GPU and MIG resource requests
Section titled “Case: ordinary GPU and MIG resource requests”In a setup using Fake GPU Operator 0.2.1, a generation model requesting an ordinary GPU resource and an embedding model requesting a MIG resource were each run with a CPU runtime. The ordinary GPU resource came through the device plugin. The MIG extended resource required a separate adjustment so that the node advertised it.
| Placement condition | Actual model execution | Observed result |
|---|---|---|
Request one nvidia.com/gpu resource | Run a small generation model on CPUs | Model server response received |
Request one nvidia.com/mig-3g.40gb resource | Run a small embedding model on CPUs | ISVC Ready and a 384-dimensional response from /v1/embeddings |
In the embedding case, the predictor for the ISVC requesting the resource was placed, and its model server answered the request. The response from a separate CPU server was not combined with the GPU placement result.
This approach helped inspect whether resource names and quantities were passed through the model serving declaration, whether the Pod was placed, and whether the model server was connected to its request path. It separated deployment problems from issues involving actual GPU devices.
Divide failures into four stages
Section titled “Divide failures into four stages”When deployment stalls, first establish how far it progressed. A resource appearing on a node, a Pod being placed, a model process starting, and a request succeeding are distinct observations.
| Stage | What to inspect | What to determine |
|---|---|---|
| Resource advertisement | Node Capacity and Allocatable | Does the requested resource name and quantity exist? |
| Pod placement | The PodScheduled condition and scheduling events | Are node selection constraints and resource requests satisfied? |
| Model startup | Container state and model server logs | Are CPU execution settings, model loading, and memory conditions correct? |
| Request handling | Readiness, Service targets, and an actual HTTP response | Does the request reach a ready model server and get processed? |
For a Pending Pod, inspect the events to identify the missing resource. A Pod requesting GPUs can still fail placement because of insufficient CPU or memory. Looking only at the GPU resource name misses that distinction.
Once placement succeeds, inspect the model server’s execution requirements. A CPU image still needs suitable model cache paths, memory, and shared memory. CPU vLLM startup issues and GPU resource advertisement issues can be investigated separately at this stage.
What to check next on real GPUs
Section titled “What to check next on real GPUs”This setup covers simulated scheduling resources and CPU inference. A CPU response does not establish that CUDA runs, that a model fits in GPU memory, or that performance meets a target. A quantity such as nvidia.com/gpu: 1 also does not specify the amount of GPU memory a model will use.
MIG, or Multi-Instance GPU, partitions the compute and memory resources of a physical GPU. The nvidia.com/mig-3g.40gb resource in this case was advertised for the scheduler to consume. Profile metadata, node Allocatable, and physical MIG partitions are separate things. A setup that advertises additional resources this way should not be read as a procedure completed by installing the operator alone.
Metrics need the same distinction. The fake exporter used in this case lacked the required MIG instance labels, so the checks did not extend to monitoring individual MIG instances. A simulated GPU utilization value on a dashboard differs from a physical device measurement. This observation concerns the setup used at the time; consult the relevant documentation for current version capabilities.
Tools such as KWOK can also simulate nodes and Pod lifecycles without kubelet. The Pod state displayed by that approach and the execution and responses of real CPU containers discussed here cover different validation targets.
Continue with these checks on real GPU hardware.
- Confirm that drivers and the container runtime are connected and that the model server uses the intended GPU execution path.
- Check that the target model fits in GPU memory and works under the intended number of concurrent requests.
- If using MIG, verify physical partitioning, device allocation, and isolation between workloads.
- Confirm that DCGM metrics and MIG instance labels from real devices reach the monitoring system.
- Measure throughput, latency, and error rates with representative requests and load conditions.
References
Section titled “References”Official documentation checked on 2026-11-19.