0
0
Kubernetesdevops~5 mins

Probe failure and container restart behavior in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a liveness probe in Kubernetes?
A liveness probe checks if a container is alive. If it fails, Kubernetes restarts the container to fix it.
Click to reveal answer
beginner
What happens when a readiness probe fails?
When a readiness probe fails, Kubernetes stops sending traffic to the container but does not restart it.
Click to reveal answer
intermediate
How does Kubernetes decide to restart a container after a probe failure?
Kubernetes restarts a container only if the liveness probe fails. Readiness probe failures do not cause restarts.
Click to reveal answer
intermediate
What is the difference between a startup probe and a liveness probe?
A startup probe checks if the container application has started. It prevents premature liveness probe failures during startup.
Click to reveal answer
beginner
Why is it important to configure probes correctly in Kubernetes?
Correct probe configuration ensures containers restart only when needed and traffic is routed properly, improving app reliability.
Click to reveal answer
What does a failing liveness probe cause in Kubernetes?
AContainer restart
BStop sending traffic to container
CPod deletion
DNo action
If a readiness probe fails, what happens?
ATraffic stops going to the container
BContainer restarts immediately
CPod is deleted
DNothing happens
Which probe helps avoid restarting a container too early during startup?
AReadiness probe
BStartup probe
CLiveness probe
DHealth probe
What is the main purpose of a readiness probe?
ARestart container if unhealthy
BDelete pod if failing
CMonitor CPU usage
DCheck if container is ready to serve traffic
What happens if all probes are misconfigured?
ANo effect on container behavior
BKubernetes ignores probes
CContainers restart unnecessarily or traffic is misrouted
DPods scale automatically
Explain how Kubernetes uses liveness and readiness probes to manage container health and traffic.
Think about what happens when each probe fails.
You got /3 concepts.
    Describe the role of a startup probe and why it is useful in Kubernetes container management.
    Consider container startup delays and probe timing.
    You got /3 concepts.