Startup delay overlap

  • A worked example shows initial delays elapsing while the startup probe is still running.
100%

Illustrative overlap example · Kubernetes 1.29.3 source semantics; values are examples

Initial delays overlap startupInitial delays overlap startupWorked example · Initial delays overlap startup · Illustrative startup success at 60sStartup checksInitial delayGated by startupChecks enabled0s15s30s45s60s75s90sStartup probeStartup probeEvery 5s · first success at 60sStartup checks stopReadiness probeReadiness probeInitial delay · 0–30sWaiting on startup · 0–60sEnabled · every 5sLiveness probeLiveness probeInitial delay · 0–30sWaiting on startup · 0–60sEnabled · every 15sRestart conditionsRestart conditionsStartup budget exhausted OR liveness threshold reachedReadiness failure alone changes traffic eligibility.

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

  • In this Kubernetes 1.29.3 example, the 30-second initial delays start when the container starts. Startup first succeeds at 60 seconds, by which time both delays have elapsed.
  • Readiness and liveness can each run on their next scheduled check after startup success is observed. The 60-second boundary marks eligibility. The first sample can occur later.
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