What this thread does
Do first: run kubectl get nodes -o json and inspect status.allocatable for the installed plugin's GPU key before requesting devices.
Short answer
As of November 2026, this recipe targets Kubernetes 1.35, whose release announcement is dated December 17, 2025. Use equal GPU requests/limits, model-aware probes and a replica ceiling derived from schedulable GPU capacity. HPA does not create GPU nodes or guarantee latency during model loading.
Choose / don't choose
- Classic device plugin: choose whole GPUs using the node's actual extended-resource key; don't assume
nvidia.com/gpufor AMD. GPU scheduling, NVIDIA prerequisites. - Queue metric: choose when CPU stays low while GPU backlog and latency rise; don't scale from CPU alone in that case. Include loading delay and admission limits. Guilin Zhang and colleagues' July 10, 2025 KIS-S report calls the default HPA reactive and threshold-based; its simulated results are not this deployment's capacity.
- CPU metric: choose only when CPU utilization predicts the serving bottleneck and CPU requests exist. Don't interpret an unavailable metric as zero load. HPA.
Not for: Helm chart conversion; see helm-4-convert-kubernetes-yaml-or-compose-to-chart.
Settings that matter
| Setting or flag | Value / default | Applies to | Source |
|---|---|---|---|
resources.limits["gpu-vendor.example/example-gpu"] | 1 as an application example; matching requests may be omitted or must equal the limit | Kubernetes baseline above, classic plugin | GPU scheduling |
startupProbe.failureThreshold / periodSeconds | 30 / 10 gives a 300-second example allowance; enlarge from cold-start measurements | Baseline above | Probe fields |
startupProbe.httpGet | Actual model-ready route and port; success only after model load/warmup | Baseline above; route is application-specific | Slow startup |
readinessProbe.httpGet / periodSeconds | Actual model-ready route; 5 seconds in documented example; failure removes Service traffic | Baseline above | Probe fields |
timeoutSeconds / failureThreshold | Defaults 1 second / 3; tune against probe latency; liveness failure past tolerance restarts | Baseline above | Probe fields |
minReplicas / maxReplicas | Example 1 / 10; replace ceiling with no more than floor(usable GPU units / units per Pod), reserving rollout capacity | HPA baseline above | HPA walkthrough |
metrics[].resource.target.averageUtilization | 50 in CPU example; type: Utilization for a percentage of the requested value | HPA baseline above; conditional fallback | Walkthrough |
external.target in an External metric | type: AverageValue, averageValue: 30 in queue example; use measured tasks-per-ready-replica target and adapter's actual metric | HPA baseline above; example not universal | Queue example |
behavior.scaleDown.stabilizationWindowSeconds | 300 default; retain capacity through short troughs | HPA baseline above | HPA behavior |
strategy.rollingUpdate.maxSurge / maxUnavailable | 0 / 1 when no spare GPU is available; single replica loses availability during replacement | Deployment baseline above | Rolling updates |
Order of operations
1. Inspect server version and node allocation. Establish drivers, vendor runtime and device-plugin DaemonSet first; inspect plugin logs and advertised capacity. Request CPU/RAM separately; GPU count is not VRAM size. 2. Start one replica with real model-ready probes. Observe cold-start time, readiness and inference output before attaching HPA. Startup gates readiness/liveness; ordinary upstream failures should not cause a liveness restart loop. Probes. 3. Install a metrics adapter; use kubectl describe hpa to require available metrics. Select the queue target from measured serving capacity and latency allowance, then apply minimum and capacity-derived maximum. Account separately for terminating and surge Pods. HPA. 4. Watch rollout status and ready endpoints during an image change; keep spare GPU capacity if downtime is unacceptable.
Known failures and fixes
| Error (short quote) | Cause | Fix | Source |
|---|---|---|---|
Pending | Pod may not fit on any node | Read scheduler events with kubectl describe pod; compare requested GPU key with node allocatable; repair plugin/driver/runtime or add matching capacity | Pod debugging, describe |
OOMKilled | Container was killed because it is out of memory; this differs from an inference library's GPU-memory exception | Inspect lastState.terminated.reason, exit code and previous logs; reduce working set/batch size or raise RAM after capacity review | Memory diagnosis |
Failure | The container failed the diagnostic | Inspect probe responses and model-loading logs; size startup budget from loading time, not a blind liveness delay | Probe outcomes |
Missing
- Exact GPU inventory, VRAM needs, server readiness route, queue metric name, latency target and measured safe concurrency are unspecified. The source's 30-task target is illustrative, not a model-serving recommendation.
Checked
2026-11-12; Kubernetes baseline linked above. Sources read: release/support, GPU/plugin, probe, HPA, Deployment, kubectl, Pod/memory references and Zhang et al. report. No cluster commands executed.
Started from a post by @Kubernetes v1.35 Release Team, packaged by the editor. Original post