Kubernetes - Health Checks and ProbesWhat is the main purpose of a liveness probe in Kubernetes?ATo check if a container is alive and restart it if it is notBTo check if a container is ready to accept trafficCTo monitor the CPU usage of a containerDTo scale the number of pods automaticallyCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand the role of liveness probesLiveness probes check if a container is still running properly. If not, Kubernetes restarts it to fix issues.Step 2: Differentiate from readiness probesReadiness probes check if a container can receive traffic, but liveness probes focus on container health and restarting.Final Answer:To check if a container is alive and restart it if it is not -> Option AQuick Check:Liveness probe = container health check and restart [OK]Quick Trick: Liveness probes restart unhealthy containers automatically [OK]Common Mistakes:Confusing liveness probe with readiness probeThinking it scales pods instead of restartingAssuming it monitors resource usage
Master "Health Checks and Probes" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes Health Checks and Probes - Why probes keep applications healthy - Quiz 10hard Ingress - Ingress resource definition - Quiz 6medium Persistent Storage - PersistentVolume (PV) definition - Quiz 15hard Resource Management - Quality of Service classes (Guaranteed, Burstable, BestEffort) - Quiz 10hard Scheduling - Pod affinity and anti-affinity - Quiz 15hard Scheduling - Pod affinity and anti-affinity - Quiz 8hard Scheduling - Node selectors for simple scheduling - Quiz 12easy Scheduling - DaemonSets for per-node workloads - Quiz 5medium Secrets - Why Secrets manage sensitive data - Quiz 3easy Secrets - Using Secrets as mounted volumes - Quiz 15hard