A readiness probe is a Kubernetes mechanism that continuously assesses whether a specific container within a Pod is prepared to serve incoming requests. Unlike a liveness probe, which determines if a container should be restarted, a readiness probe controls whether the container's IP address is added to the Service endpoint. If the probe fails, the container is removed from the load balancer pool, ensuring that traffic is never routed to an instance that is initializing, loading a large model into GPU memory, or experiencing a transient failure.
Glossary
Readiness Probe

What is a Readiness Probe?
A readiness probe is a Kubernetes diagnostic check that determines if a container is ready to accept network traffic, preventing requests from being routed to a model instance that is still loading weights or is otherwise unresponsive.
For latency-optimized model serving, readiness probes are critical during the cold start phase when a large language model's weights are being transferred to the accelerator. The probe typically executes an HTTP GET request against a lightweight health endpoint or a gRPC health check, succeeding only when the model is fully loaded and the inference server is ready. This prevents the P99 latency from spiking due to requests queuing against an unready instance, directly supporting strict Service Level Objectives (SLOs) for high-throughput personalization systems.
Key Characteristics of Readiness Probes
Readiness probes are the gatekeepers of production traffic, ensuring that only fully initialized and healthy containers receive requests. Misconfiguring them leads to dropped connections, 502 errors, and cascading failures during rolling updates.
Traffic Routing Gate
The primary function of a readiness probe is to control membership in a Service's endpoint list. A container is not added to load balancer rotation until the probe succeeds. If a running container's probe fails, it is immediately removed from the pool, preventing requests from being routed to a degraded instance. This is distinct from a liveness probe, which restarts a failed container; a readiness probe simply stops sending it traffic, allowing it to recover independently.
Model Weight Loading
For machine learning serving, the most critical use case is blocking traffic until model weights are fully loaded into GPU or CPU memory. A large language model can take minutes to initialize. The readiness probe must check that:
- The model file is loaded and deserialized
- The inference engine (e.g., Triton, vLLM) has completed warm-up
- The first dummy inference request succeeds Without this, the container will accept requests and return errors or time out.
Probe Configuration Parameters
Three timing parameters govern probe behavior and must be tuned to the model's loading profile:
- initialDelaySeconds: The grace period before the first probe runs. Set this to the minimum expected model load time to avoid premature failure.
- periodSeconds: How often the probe executes. For static readiness, a longer interval (e.g., 10s) is acceptable.
- failureThreshold: The number of consecutive failures before the container is marked Unready. A value of 3 is common to tolerate transient blips.
Probe Handler Types
Kubernetes supports three mechanisms to execute a readiness check:
- exec: Runs a command inside the container. Ideal for a Python script that calls the model's
/healthendpoint or checks for a marker file written after loading. - httpGet: Performs an HTTP GET request. The model server must expose a lightweight
/v1/health/readyendpoint that returns a 200 OK only when ready. - tcpSocket: Checks if a TCP port is open. This is a coarse check that only verifies the process is listening, not that the model is loaded. Avoid for ML serving.
Startup Probe Integration
For models with extremely long initialization times, combine a readiness probe with a startup probe. The startup probe is only active during initial container startup and can have a longer failureThreshold and periodSeconds. The readiness probe is disabled until the startup probe succeeds. This prevents the container from being killed by the liveness probe during a legitimate, slow model-loading phase while still protecting against hung processes.
Graceful Shutdown Coordination
When a pod receives a SIGTERM during a rolling update, the readiness probe must fail immediately to drain traffic before the container terminates. The sequence is:
- Kubernetes marks the pod as Terminating
- The readiness probe fails, removing the pod from Service endpoints
- The pod waits for
terminationGracePeriodSecondsfor in-flight requests to complete - The container is forcefully killed A preStop hook can explicitly fail the readiness endpoint to accelerate this drain.
Frequently Asked Questions
Clear, technical answers to the most common questions about implementing and debugging readiness probes in production model serving environments.
A readiness probe is a Kubernetes health check that continuously assesses whether a container is prepared to accept incoming network traffic. It works by executing a specified diagnostic—either an HTTP GET request, a TCP socket check, or an exec command—at a defined interval. The kubelet on the node runs this probe against the container. If the probe succeeds, the container's IP address is added to the Endpoints object of the associated Service, and it begins receiving traffic. If the probe fails consecutively beyond the failureThreshold, the container is removed from the Service endpoints, effectively taking it out of rotation without terminating the pod. This mechanism is critical for model serving because loading large model weights into GPU memory can take several minutes; a readiness probe prevents requests from being routed to an instance that is still initializing or has become unresponsive due to memory pressure.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Readiness probes are part of a broader health-checking ecosystem that ensures traffic is only routed to healthy, operational containers. These related concepts define the boundaries between startup, liveness, and readiness states in production serving.
Probe Configuration Parameters
Fine-tuning probe behavior is essential for model serving reliability. Key parameters include:
initialDelaySeconds: Time to wait before starting probes, allowing the container process to beginperiodSeconds: Frequency of probe execution (default: 10)timeoutSeconds: Maximum time to wait for a probe response before counting it as a failurefailureThreshold: Number of consecutive failures before the probe is considered failed (for readiness) or the container is restarted (for liveness)successThreshold: Number of consecutive successes required after a failure to mark the container as ready again Misconfiguring these values can cause flapping—where containers oscillate between ready and not-ready states under load.
Service Mesh Integration
In service mesh architectures like Istio or Linkerd, readiness probes integrate with the sidecar proxy to control traffic routing at a finer granularity. The mesh's control plane watches Kubernetes readiness states and dynamically updates its routing tables. When a readiness probe fails:
- The endpoint is removed from the mesh's load balancing pool
- Existing connections may be drained gracefully via connection draining settings
- Circuit breakers can be triggered if failure rates exceed thresholds This prevents the mesh from routing inference requests to a model instance that is still loading weights or experiencing GPU memory pressure.
Custom Health Endpoints for ML Serving
For model serving frameworks like NVIDIA Triton Inference Server or vLLM, readiness endpoints should validate more than just process health. A robust readiness check for ML workloads should verify:
- The model has been fully loaded into GPU memory and is ready for inference
- The KV cache is initialized and available
- Backend dependencies like feature stores or vector databases are reachable
- GPU drivers and CUDA libraries are accessible
A common pattern is exposing a
/v1/health/readyendpoint that returns HTTP 200 only when the model can successfully process a lightweight inference request, confirming end-to-end readiness.
Pod Disruption Budgets
A Pod Disruption Budget (PDB) works alongside readiness probes to protect model serving availability during voluntary disruptions like node drains or cluster upgrades. A PDB specifies the minimum number of replicas that must remain available, defined by minAvailable or maxUnavailable. When a node is drained, the eviction API respects the PDB and only evicts pods if the budget is maintained. Combined with proper readiness probes, this ensures that traffic is never routed to terminating instances and that enough healthy replicas remain to handle the inference load during maintenance operations.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us