Pull up a chair. You just racked eight dual-socket bare-metal nodes loaded with NVIDIA H100s. You installed Kubernetes, configured your storage providers, deployed your first high-parameter language model using a standard Kubernetes Deployment, and initiated a load test. Within four minutes, half your pods collapsed into CrashLoopBackOff from CUDA Out-Of-Memory (OOM) exceptions, while your remaining GPUs sat at 14% compute utilization—yet rejected incoming inference requests because the ingress gateway choked on concurrency limits. Sound familiar?
Bare-metal Kubernetes is the undisputed gold standard for low-latency, cost-effective GPU inference, but operating enterprise AI infrastructure without an orchestration layer designed for stateful compute is a recipe for financial and operational heartburn. You cannot manage multi-gigabyte Tensor-Parallel workloads using legacy Web2 CPU scaling paradigms. This guide cuts through the cloud-vendor marketing noise to walk you through building a high-throughput, fault-tolerant KServe v0.13+ architecture directly on bare-metal silicon.
\\n\\nTo reliably scale GPU inference on bare-metal Kubernetes, pair KServe v0.13+ with Knative request-queue concurrency autoscaling, NVIDIA GPU Operator MIG partitioning for structural VRAM isolation, and vLLM/Triton runtimes configured with explicit IPC shared memory mounts (/dev/shm). This eliminates CUDA OOM cascades and achieves sub-10ms routing latency.
\\nWhy Does Default Kubernetes GPU Autoscaling Fail under Enterprise LLM Load?
\\n\\nThe standard Kubernetes Horizontal Pod Autoscaler (HPA) was engineered for stateless microservices where CPU percentage and memory utilization correlate linearly with traffic load. In modern generative AI and deep learning inference, that correlation breaks down completely.
\\n\\nWhen an engine like vLLM or NVIDIA Triton Server initializes, it allocates nearly 90% to 95% of available GPU VRAM immediately to hold the model weights and establish pre-allocated Key-Value (KV) cache tensors. If your native HPA is configured to scale out when GPU memory hits 80%, your cluster will trigger horizontal scaling actions immediately upon pod startup—even when zero requests are being processed.
\\n\\nConversely, scaling based on raw GPU core utilization (via metrics like DCGM_FI_DEV_GPU_UTIL) introduces severe instability. GPU compute utilization fluctuates wildly frame-by-frame or token-by-token. A pod processing a dense batch might hit 99% GPU utilization for 400 milliseconds, dropping to 5% while waiting for network I/O. Native HPA attempts to average these spikes over a window, resulting in constant pod flapping (rapid scale-out followed by immediate scale-in).
Furthermore, cold-start latencies on bare metal are brutal. Pulling a 70B parameter model (roughly 140GB in FP16 or 35GB in INT4) over local NVMe arrays into VRAM takes anywhere from 12 to 45 seconds. If native HPA scales down your pods to zero during off-peak hours, the first incoming customer request will time out at the ingress layer long before the CUDA runtime finishes initial tensor allocation.
\\n\\nKServe resolves this structural mismatch by replacing memory and CPU autoscaling triggers with real-time queue-depth concurrency metrics managed at the ingress boundary by Knative Serving and Istio.
\\n\\nHow Should You Partition Bare-Metal A100 and H100 GPUs for KServe?
\\n\\nOne of the costliest errors platform engineering teams make on bare-metal hardware is running single, monolithic workloads across full physical GPUs when handling mixed inference profiles (e.g., small embedding models alongside massive LLMs). Leaving an NVIDIA A100-80GB or H100-80GB idle to process a low-throughput 0.5B embedding model wastes thousands of dollars per node monthly.
\\n\\nSoftware time-slicing (sharing a GPU across multiple pods via standard driver context-switching) creates unpredictable noisy-neighbor latencies, CUDA context-switch overhead, and zero VRAM isolation. If Pod A experiences a VRAM leak, it triggers an OOM fault that crashes Pod B on the same physical chip.
\\n\\nThe solution is Multi-Instance GPU (MIG) hardware partitioning configured at the host level before KServe pod schedule execution. MIG carves physical GPUs into fully isolated hardware instances down to the memory crossbars, cache paths, and compute cores.
\\n\\n| Serving Architecture | \\nAutoscaling Mechanism | \\nHardware Isolation | \\nCold-Start Overhead | \\nResource Efficiency | \\n
|---|---|---|---|---|
| Raw K8s Deployment + Native HPA | \\nCPU / RAM / Basic DCGM Util % | \\nNone (Full GPU assignment) | \\nHigh (Manual replica management) | \\nPoor (<20% average utilization) | \\n
| KServe RawDeployment + Host Driver | \\nCustom Metrics / Prometheus HPA | \\nDriver Time-Slicing (Soft) | \\nMedium (No scale-to-zero queue) | \\nModerate (Risk of CUDA OOM bleed) | \\n
| KServe Serverless + Whole GPUs | \\nKnative Queue-Depth Concurrency | \\nFull Physical Device Isolation | \\nManaged via Knative Activator | \\nGood for Large Models (70B+) | \\n
| KServe v0.13+ + MIG + vLLM / Triton | \\nKnative KPA Concurrency & Metric Directives | \\nHardware-Level MIG Slices (3g.40gb, 1g.10gb) | \\nOptimized (Pre-warmed queue buffers) | \\nOptimal (>85% hardware efficiency) | \\n
By leveraging MIG, an 80GB H100 node can be sliced into two 3g.40gb profiles for mid-sized LLMs or seven 1g.10gb profiles for low-latency feature extraction and token embeddings, giving KServe granular, failure-isolated targets to autoscale against.
The Step-by-Step Playbook for Production KServe GPU Orchestration
\\n\\nThis playbook provides the concrete infrastructure configurations to turn raw bare-metal nodes into a production-hardened KServe serving plane.
\\n\\nStep 1: Deploy the NVIDIA GPU Operator with Custom MIG Profiles
\\n\\nDo not manually install NVIDIA drivers and container toolkits on bare-metal worker nodes. Use the Helm-based NVIDIA GPU Operator to enforce driver consistency across the cluster and manage dynamic runtime configuration.
\\n\\nCreate a dynamic dynamic MIG partition blueprint named mig-config.yaml:
\n
\\napiVersion: v1\\nkind: ConfigMap\\nmetadata:\\n name: default-mig-parted-config\\n namespace: gpu-operator\\ndata:\\n config.yaml: |\\n version: v1\\n mig-configs:\\n all-balanced:\\n - device-filter: "0x233010DE-0" # H100 PCIe / SXM\\n devices: [0, 1, 2, 3]\\n mig-enabled: true\\n mig-devices:\\n "3g.40gb": 2\\n mixed-workload:\\n - device-filter: "0x20b010DE-0" # A100 80GB\\n devices: [0, 1]\\n mig-enabled: true\\n mig-devices:\\n "1g.10gb": 7\\n
Apply the Helm release enabling the Container Toolkit runtime and dynamic device plugin plugin:
\\n\\n\n
\\nhelm repo add nvidia https://nvidia.github.io/gpu-operator && helm repo update\\nhelm upgrade --install gpu-operator nvidia/gpu-operator \\\\\\n --namespace gpu-operator \\\\\\n --create-namespace \\\\\\n --set driver.enabled=true \\\\\\n --set toolkit.enabled=true \\\\\\n --set mig.strategy=mixed \\\\\\n --set devicePlugin.config.name=default-mig-parted-config\\n
Step 2: Tune Knative Serving and Istio Ingress for Model Concurrency
\\n\\nKServe relies on Knative Pod Autoscaler (KPA) to handle real-time concurrency metrics. Default Knative settings will aggressively scale pods down or drop incoming gRPC connections during heavy token streaming. Modify the Knative config-autoscaler ConfigMap to align with long-running inference tasks.
\n
\\napiVersion: v1\\nkind: ConfigMap\\nmetadata:\\n name: config-autoscaler\\n namespace: knative-serving\\ndata:\\n container-concurrency-target-default: "10"\\n stable-window: "60s"\\n panic-window-percentage: "10.0"\\n panic-threshold-percentage: "200.0"\\n scale-to-zero-grace-period: "30s"\\n enable-scale-to-zero: "true"\\n
By defining container-concurrency-target-default: "10", you instruct Knative to route up to 10 active parallel requests to an inference pod before spawning a new pod replica. This directly prevents backend CUDA memory saturation.
Step 3: Build the Production vLLM KServe ServingRuntime with IPC Mounts
\\n\\nWhen running multi-threaded GPU inference engines like vLLM or Triton, Python worker threads and PyTorch Distributed backends rely heavily on shared memory for Inter-Process Communication (IPC). The default Kubernetes container environment allocates a restrictive 64MB to /dev/shm. Under load, this causes instant segmentation faults and memory corruption.
Deploy a standardized KServe ServingRuntime that overrides the /dev/shm mount with an in-memory emptyDir volume:
\n
\\napiVersion: measserving.kserve.io/v1alpha1\\nkind: ServingRuntime\\nmetadata:\\n name: vllm-runtime\\n namespace: kserve-inference\\nspec:\\n supportedModelFormats:\\n - name: vllm\\n version: "1"\\n autoSelect: true\\n containers:\\n - name: kserve-container\\n image: vllm/vllm-openai:v0.6.2\\n command: ["python3", "-m", "vllm.entrypoints.openai.api_server"]\\n args:\\n - "--port=8080"\\n - "--model=/mnt/models"\\n - "--gpu-memory-utilization=0.90"\\n - "--max-model-len=4096"\\n volumeMounts:\\n - mountPath: /dev/shm\\n name: dshm\\n resources:\\n limits:\\n cpu: "16"\\n memory: 64Gi\\n nvidia.com/gpu: "1"\\n requests:\\n cpu: "8"\\n memory: 32Gi\\n nvidia.com/gpu: "1"\\n volumes:\\n - name: dshm\\n emptyDir:\\n medium: Memory\\n sizeLimit: 16Gi\\n
Step 4: Deploy the High-Performance InferenceService Blueprint
\\n\\nNow deploy your active model spec using the custom runtime. Notice the explicit annotations controlling Knative’s scale bounds, target metrics, and probe initializations to prevent traffic from hitting pods during model weight loading.
\\n\\n\n
\\napiVersion: serving.kserve.io/v1beta1\\nkind: InferenceService\\nmetadata:\\n name: llama-3-8b-instruct\\n namespace: kserve-inference\\n annotations:\\n autoscaling.knative.dev/target: "8"\\n autoscaling.knative.dev/minScale: "1"\\n autoscaling.knative.dev/maxScale: "4"\\n autoscaling.knative.dev/metric: "concurrency"\\nspec:\\n predictor:\\n model:\\n modelFormat:\\n name: vllm\\n storageUri: "s3://ml-models/llama-3-8b-instruct/"\\n resources:\\n limits:\\n nvidia.com/mig-3g.40gb: "1"\\n memory: 48Gi\\n requests:\\n nvidia.com/mig-3g.40gb: "1"\\n memory: 32Gi\\n readinessProbe:\\n httpGet:\\n path: /health\\n port: 8080\\n initialDelaySeconds: 30\\n periodSeconds: 5\\n failureThreshold: 12\\n
This manifest requests a hardware-isolated 3g.40gb MIG slice. It forces Knative to monitor active worker queue length rather than raw CPU utilization, routing requests safely while maintaining high GPU saturation.
Step 5: Telemetry Configuration via NVIDIA Data Center GPU Manager (DCGM)
\\n\\nTo ensure your auto-scaling decisions map accurately to physical hardware conditions, capture operational metrics through Prometheus by deploying the NVIDIA DCGM Exporter. Configure your Prometheus scraping job to track these critical signals:
\\n\\n- \\n
DCGM_FI_DEV_GPU_UTIL: Real-time compute engine activity. \\n DCGM_FI_DEV_MEM_COPY_UTIL: Memory bandwidth utilization (identifies bottlenecks in KV caching). \\n DCGM_FI_DEV_FB_USEDvsDCGM_FI_DEV_FB_FREE: Frame buffer allocation (VRAM pressure tracking). \\n kserve_container_concurrency: Active requests currently processing inside the container queue. \\n
If your DCGM_FI_DEV_MEM_COPY_UTIL hits 95% while DCGM_FI_DEV_GPU_UTIL sits below 30%, your model context window or token generation batching is bottlenecked on memory bus throughput—indicating you need to adjust vLLM’s --max-num-seqs or increase MIG slice sizes rather than scaling out replica counts.
Frequently Asked Questions
\\n\\n\\nRadxa ROCK 5B+ vs Orange Pi 5 Max (RK3588 Benchmarks) • \\nEdge AI Carrier Boards: Seeed vs Auvidea Jetson Traps • \\nK3s Cluster on RK3588: Cilium eBPF CNI Networking • \\nIntel NPU 4 vs AMD XDNA 2: Copilot+ AI TOPS • \\nGroq LPU vs SambaNova SN40L Deterministic Silicon.\\n
Deploying edge AI carrier boards at scale requires automated orchestration. Review multi-node inference clustering in Embedded AI Carrier Boards: Jetson Orin vs CM4 Boards.