The new version of an API rolled out, but one replica never becomes ready and some requests fail. Start by separating two questions: is the new version becoming available, and are requests reaching the Pods you expect? A restart alone cannot tell you which part failed.
Follow the deployment from its desired state to the request path
1. What does a Deployment control?
A Deployment manages ReplicaSets, which reconcile the desired number of Pods. A rollout normally starts when the Pod template changes. Increasing replicas without changing that template does not by itself create a new revision. Compare desired, updated, ready, and available counts: a new Pod can exist without being ready, and a ready Pod might not yet satisfy minReadySeconds.
2. Which evidence separates scheduling from startup?
If a Pod has not been scheduled, inspect its events for resource, taint, or placement constraints. If it is scheduled but waiting, look at image pull and container state. If it restarts, look at the termination reason and previous container logs. Raising a memory limit without checking whether the previous container was killed for memory can conceal the wrong problem.
kubectl rollout status deployment/api --timeout=30s
kubectl describe pod api-example
kubectl logs api-example -c api --previous
kubectl get endpointslice -l kubernetes.io/service-name=api
Replace the sample Pod name and use the correct namespace. A local status timeout only limits the wait for the command; it does not stop or roll back the Deployment. Previous logs only exist when Kubernetes has retained a previous instance of that container.
3. Which probe should fail if the Pod cannot serve traffic yet?
Readiness determines whether the container is ready for traffic; failure does not itself restart it. Repeated liveness failures can restart the container. A startup probe can give a slow-starting application time before the other probes take over. Avoid making a liveness check fail merely because a shared upstream is down: restarting every replica may make recovery harder without fixing the upstream.
4. Why can a ready Pod still be missing from the Service?
A selector-backed Service finds Pods by matching labels. Compare its selector to Pod labels and inspect EndpointSlices, including endpoint readiness. With endpoints present, check whether the Service port points at the expected container port and whether the app listens there. A working loopback health check is not proof that traffic from another Pod can reach the same listener.
5. When should you roll back rather than keep debugging?
If the new revision clearly correlates with a material failure, use the team's incident procedure to restore known-good service. Capture evidence first when it will not delay mitigation. A Deployment rollback restores a Pod template revision, not an external configuration change or database migration. Confirm the old binary can still work with the current schema and configuration.
Practice explaining the evidence
- Give separate explanations for an unscheduled Pod, an unready Pod, and a ready Pod missing from a Service.
- Pick one command for each case and name the field you would inspect.
- Explain what the rollback can undo and what needs a separate recovery decision.
For practice choosing the right level of detail, read the topic-depth guide, then answer a sample card in Mentaro's free practice demo.