0
0
Kubernetesdevops~5 mins

Liveness probe concept 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 is a check Kubernetes uses to see if a container is still running and healthy. If the probe fails, Kubernetes restarts the container to fix it.
Click to reveal answer
beginner
How does Kubernetes react when a liveness probe fails?
Kubernetes restarts the container to try to fix the problem when the liveness probe fails.
Click to reveal answer
intermediate
Name three types of liveness probes supported by Kubernetes.
Kubernetes supports HTTP GET requests, TCP socket checks, and running a command inside the container as liveness probes.
Click to reveal answer
intermediate
Why is it important to set the initial delay for a liveness probe?
Initial delay lets the container start up fully before Kubernetes starts checking its health, preventing false restarts.
Click to reveal answer
intermediate
What is the difference between a liveness probe and a readiness probe?
A liveness probe checks if the container should be restarted, while a readiness probe checks if the container is ready to accept traffic.
Click to reveal answer
What happens if a liveness probe fails in Kubernetes?
AThe pod is scaled up
BThe container is restarted
CNothing happens
DThe container is deleted permanently
Which of these is NOT a type of liveness probe?
AMemory usage check
BTCP socket check
CHTTP GET request
DRunning a command
Why do we use an initial delay in liveness probes?
ATo disable the probe
BTo delay container startup
CTo speed up restarts
DTo wait before starting health checks
Which Kubernetes object uses liveness probes?
AService
BConfigMap
CPod
DNamespace
What is the main goal of a liveness probe?
ATo check if the container is alive and restart if not
BTo check if the container is ready to serve traffic
CTo monitor network traffic
DTo update container images
Explain what a liveness probe is and why it is useful in Kubernetes.
Think about how Kubernetes keeps containers running smoothly.
You got /3 concepts.
    Describe the different types of liveness probes and when you might use each.
    Consider how you can check container health in different ways.
    You got /4 concepts.