Kubernetes check
Container is missing a readiness or liveness probe
Trigger condition
A regular container or native sidecar (an initContainers entry with restartPolicy: Always) does not configure a readinessProbe, a livenessProbe, or both. A configured startupProbe never satisfies either requirement. Only whether each probe is configured is checked -- handler validation, thresholds, and runtime results are all outside this check's scope. Ordinary init containers and ephemeral containers are excluded entirely, since Kubernetes does not permit either probe on them. Applies identically to Linux and Windows workloads. For an already-admitted Pod, this first version is further scoped to spec.restartPolicy Always or omitted (Kubernetes' own default) -- a Job/CronJob-style Pod (OnFailure/Never) is out of scope for this version, without adding Job, CronJob, or Service collection.
Evidence
States the container's type and name, and names the missing field(s) using the real manifest names: readinessProbe and/or livenessProbe.
Impact
Without a readinessProbe, Kubernetes lacks this container's application-level readiness signal. If other readiness conditions are met, the Pod may receive normal Service traffic (if this Pod happens to be one of a Service's endpoints) before the application is actually ready. Without a livenessProbe, a process that stays running but stops making progress may go undetected and never be restarted -- though some workloads already exit on their own on an unrecoverable failure, in which case omitting a livenessProbe may be a reasonable choice rather than an oversight. Both are described as possible effects that depend on the workload, never as certainties this check can confirm from the spec alone.
Recommendation
Add a readinessProbe that checks whether this container is actually ready to fulfil its role -- for a container that handles traffic, its ability to serve requests, not merely that the process is running; for a container with a different role (e.g. a queue worker), a condition appropriate to that role instead. Add a livenessProbe using a lightweight check for a failure a restart can actually resolve (e.g. a deadlock) -- never a check that can fail due to a shared dependency outage, which would restart an otherwise healthy container and make the outage worse. If the application has a slow startup, add a startupProbe as well so an in-progress startup is not mistaken for a liveness failure. For a Deployment-managed container, make the change in the Deployment's own Pod template and roll out the change. For a Pod with no verified owning Deployment, if a controller manages it (e.g. a DaemonSet or StatefulSet), make the change in that workload's own source configuration and follow its normal update process; if the Pod is standalone, make the change in its own source manifest and recreate it. For a Deployment-owned Pod whose own missing probe(s) are not fully covered by its template's matching container, the recommendation names only the genuinely uncovered probe and directs investigation through the owning controller rather than editing the Pod directly.
Important limitations
This check only detects whether readinessProbe/livenessProbe is configured at all -- it never validates a configured probe's own handler, thresholds, or runtime results. It is scoped to regular containers and native sidecars on Pods with restartPolicy Always or omitted; ordinary init containers, ephemeral containers, and Job/CronJob-style Pods (restartPolicy OnFailure or Never) are all outside this version's scope.