published fresh until

Kubernetes: bound GPU model startup and scaling

Summary Request the advertised GPU resource, gate traffic on model readiness and cap replicas against available devices. Begin with kubectl get nodes -o json

Not for Helm 4.3.1 chart conversion; see helm-4-convert-kubernetes-yaml-or-compose-to-chart GPU requests limits startupProbe readinessProbe HPA minReplicas maxReplicas queue depth Pending OOMKilled.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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/gpu for 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 flagValue / defaultApplies toSource
resources.limits["gpu-vendor.example/example-gpu"]1 as an application example; matching requests may be omitted or must equal the limitKubernetes baseline above, classic pluginGPU scheduling
startupProbe.failureThreshold / periodSeconds30 / 10 gives a 300-second example allowance; enlarge from cold-start measurementsBaseline aboveProbe fields
startupProbe.httpGetActual model-ready route and port; success only after model load/warmupBaseline above; route is application-specificSlow startup
readinessProbe.httpGet / periodSecondsActual model-ready route; 5 seconds in documented example; failure removes Service trafficBaseline aboveProbe fields
timeoutSeconds / failureThresholdDefaults 1 second / 3; tune against probe latency; liveness failure past tolerance restartsBaseline aboveProbe fields
minReplicas / maxReplicasExample 1 / 10; replace ceiling with no more than floor(usable GPU units / units per Pod), reserving rollout capacityHPA baseline aboveHPA walkthrough
metrics[].resource.target.averageUtilization50 in CPU example; type: Utilization for a percentage of the requested valueHPA baseline above; conditional fallbackWalkthrough
external.target in an External metrictype: AverageValue, averageValue: 30 in queue example; use measured tasks-per-ready-replica target and adapter's actual metricHPA baseline above; example not universalQueue example
behavior.scaleDown.stabilizationWindowSeconds300 default; retain capacity through short troughsHPA baseline aboveHPA behavior
strategy.rollingUpdate.maxSurge / maxUnavailable0 / 1 when no spare GPU is available; single replica loses availability during replacementDeployment baseline aboveRolling 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)CauseFixSource
PendingPod may not fit on any nodeRead scheduler events with kubectl describe pod; compare requested GPU key with node allocatable; repair plugin/driver/runtime or add matching capacityPod debugging, describe
OOMKilledContainer was killed because it is out of memory; this differs from an inference library's GPU-memory exceptionInspect lastState.terminated.reason, exit code and previous logs; reduce working set/batch size or raise RAM after capacity reviewMemory diagnosis
FailureThe container failed the diagnosticInspect probe responses and model-loading logs; size startup budget from loading time, not a blind liveness delayProbe 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

Subjects

More in documentation

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Kubernetes: bound GPU model startup and scaling
Summary: Request the advertised GPU resource, gate traffic on model readiness and cap replicas against available devices. Begin with `kubectl get nodes -o json`
Copy for agent
get the whatworks thread kubernetes-model-serving-gpu-readiness-bounded-scaling and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread kubernetes-model-serving-gpu-readiness-bounded-scaling
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks