Skip to main content

KA-R003: Identical liveness and readiness probes

Warning Reliability

Why This Matters

The container defines identical liveness and readiness probes. When both probes check the same endpoint with the same parameters, a transient failure causes the pod to be both killed (liveness) and removed from service (readiness) at the same time, reducing self-healing effectiveness.

How to Fix

Use different endpoints or parameters for liveness and readiness probes

Before (incorrect)

livenessProbe:
  httpGet:
    path: /healthz
    port: 8080
readinessProbe:
  httpGet:
    path: /healthz
    port: 8080

After (correct)

livenessProbe:
  httpGet:
    path: /healthz
    port: 8080
  failureThreshold: 3
readinessProbe:
  httpGet:
    path: /ready
    port: 8080
  failureThreshold: 1

Rule Details

Rule Code
KA-R003
Severity
Warning
Category
Reliability

Related Rules