Lifecycle overview

  • Connect startup, probes, endpoint eligibility and work already accepted by the application.
100%
Probe contractEndpoint controlAll Kubernetes lifecycle boundariesRequest / responseHealth checksControl / stateFailure / rejectionstartup successstartup successbudget exhaustedlocal resultindependent loopfatal thresholdthreshold outcomeobservepublishobserve / acceptaccepted viewempty eligibilityexisting worklocal loop continuesinitialize againWhen startupProbe is configured, success gates both readiness and liveness. Exhausting its failure budget can restart an otherwise existing process when required initialization/dependency work fails.Startup probeReadiness failures make the Pod unready after its threshold, without requesting restart. The loop continues while unready; successful recovery observations can restore eligibility.ReadinessLiveness is independent of Ready/Unready after startup enables it. A deliberate local restart predicate/publisher is needed; dependency outage and ordinary admission rejection are not that predicate.LivenessProbe thresholds and timing govern observed outcomes. Kubelet does not infer all-route warming, provider availability or worker capacity from one HTTP success. KubeletStartup exhaustion or the failed liveness threshold can request restart. Unready status alone is not this transition.RestartObserved readiness updates the Pod condition used for eligibility. This is not an instantaneous cancellation or drain of accepted work.Ready conditionThe platform endpoint controller consumes relevant Pod readiness/discovery state. Publication and downstream observation have propagation delay. Endpoint controllerEndpointSlices can retain ready, serving and terminating conditions. Consumers apply the Service/readiness contract to derive eligibility. publishNotReadyAddresses can change that selection rule. A Service is destination selection, not an added application HTTP hop. EndpointSliceA proxy/service consumer routes from the state it has actually observed and accepted. In an Istio deployment, further Istiod/proxy propagation remains asynchronous. Accepted viewReadiness changes new selection while accepted work can continue. Persistent connections and existing requests need a separate bounded drain contract. Accepted workUse the accepted endpoint view for new destination selection. Immediate local admission still protects execution during propagation delay. Endpoint selectionUnavailability reflects the required endpoint view after propagation. Keep probing and recover without requiring new business requests to unlock the probe loop.No targetstartup successstartup successbudget exhaustedlocal resultindependent loopfatal thresholdthreshold outcomeobservepublishobserve / acceptaccepted viewempty eligibilityexisting worklocal loop continuesinitialize again

Select a component to trace its direct connections. Drag to pan · Ctrl + wheel or pinch to zoom.

  • The kubelet makes the local health decision. The Ready condition reaches the API, the controller updates the EndpointSlice, and consumers apply that change to their own destination lists.
  • A newly unready Pod can still receive a connection from a consumer with an older list. Previously accepted work can also continue. Restart is a separate outcome of startup or liveness failure.
Startup, readiness and liveness

Startup, readiness and liveness

Kubelet 1.29.3 and 1.34.1 source · startup and initial-delay overlap

Probe contracts

A configured startup probe gates both readiness and liveness until success; exhausting its failure budget can restart the container. Without a startup probe, their own schedules apply.

Readiness changes new-traffic eligibility and keeps probing while unready. Liveness has an independent restart contract; neither readiness withdrawal nor ordinary dependency overload requests that restart.

In the source-inspected kubelet versions, initialDelaySeconds is measured from container start. Earliest readiness/liveness eligibility is the later of container start plus its delay and startup success reflected in status; the next worker opportunity can be later.

The worked overlap view uses illustrative values, not Kubernetes defaults: startup success at 60s and a 30s container-age delay permit eligibility at 60s. A nominal 5s × 20 startup budget is a separate failure example, not an exact restart promise.

Choose the failure exposure you are willing to bear

If a Pod fails immediately after a successful readiness check, a five-second check interval can leave traffic exposed until the next observation. That is an explicit SRE risk decision: choose the window from the failed or slow requests the service can tolerate and the capacity available elsewhere. A false failure can instead withdraw useful capacity and overload the remaining replicas.

Make the tolerated window and threshold agree

Start with the next-check exposure window, then include failureThreshold, probe duration/timeout and endpoint propagation. For an illustrative five-second period and threshold of three failures, detection can span roughly 10–15 seconds from failure onset before those additional effects. This scheduling estimate is not a hard bound. If that exposure is unacceptable, change the contract or detection design rather than describing the configured interval as sufficient.

Relate the window to useful throughput

If illustrative failed attempts average 100 requests/second for a 10-second exposure window, about 1,000 attempts are exposed to that failure mode. That is not automatically 1,000 lost business transactions: retries, idempotency, rerouting and unknown outcomes change the result. Measure offered, successful, rejected, timed-out and retried requests together. If peers have enough capacity, readiness withdrawal can improve useful throughput despite reducing the ready replica count.

Liveness can create a longer capacity hole

After its failure threshold, liveness can restart the container. Termination, process startup, artifact work, configuration warmup and startup/readiness checks add to the period without useful capacity. Aggressive restart thresholds can turn transient CPU/GC/dependency pressure into repeated warmups; readiness should normally handle recoverable traffic ineligibility.

Tune by failure impact within each domain

Choose periods, thresholds and timeouts from the failure to detect, the acceptable exposure window and remaining domain capacity. Balance fast withdrawal against flapping, probe overhead and restart cost. Check recovery thresholds and endpoint convergence as well as detection. Domain/cluster isolation contains application failure only while shared storage, identity, network and other dependencies remain within their stated failure boundaries.

Illustrative HTTP probe profile with placeholder image and pathsyaml
# Illustrative profile: replace the image and paths with your local handlers.
# These values are examples, not Kubernetes defaults or OBRH configuration.
apiVersion: v1
kind: Pod
metadata:
  name: probe-example
spec:
  containers:
    - name: application
      image: example.invalid/application:replace-me
      ports:
        - name: http
          containerPort: 8080
      startupProbe:
        httpGet:
          path: /startupz
          port: http
        periodSeconds: 5
        failureThreshold: 20
      readinessProbe:
        httpGet:
          path: /readyz
          port: http
        initialDelaySeconds: 30
        periodSeconds: 5
      livenessProbe:
        httpGet:
          path: /livez
          port: http
        initialDelaySeconds: 30
        periodSeconds: 15