Kubernetes - Health Checks and ProbesYou want to configure a Kubernetes HTTP readiness probe that waits 15 seconds after container start, then checks the path /health every 3 seconds, but fails the pod if no response within 1 second. Which is the correct probe configuration snippet?AreadinessProbe: httpGet: path: /health port: 8080 initialDelaySeconds: 15 periodSeconds: 3 timeoutSeconds: 1BreadinessProbe: httpGet: path: /health port: 8080 initialDelaySeconds: 3 periodSeconds: 15 timeoutSeconds: 1CreadinessProbe: httpGet: path: /health port: 8080 initialDelaySeconds: 15 periodSeconds: 1 timeoutSeconds: 3DreadinessProbe: httpGet: path: /health port: 8080 initialDelaySeconds: 1 periodSeconds: 15 timeoutSeconds: 3Check Answer
Step-by-Step SolutionSolution:Step 1: Match initialDelaySeconds to 15 secondsThe probe must wait 15 seconds before first check, so initialDelaySeconds: 15.Step 2: Set periodSeconds to 3 seconds and timeoutSeconds to 1 secondChecks happen every 3 seconds, and timeout is 1 second as required.Final Answer:Correct probe with initialDelaySeconds 15, periodSeconds 3, timeoutSeconds 1 -> Option AQuick Check:initialDelay=15, period=3, timeout=1 matches requirements [OK]Quick Trick: Match timing values exactly to requirements [OK]Common Mistakes:Swapping initialDelaySeconds and periodSecondsSetting timeoutSeconds longer than periodSecondsUsing wrong path or port
Master "Health Checks and Probes" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes ConfigMaps - Why configuration separation matters - Quiz 13medium Ingress - Ingress vs LoadBalancer Service decision - Quiz 4medium Networking - Ingress and egress rules - Quiz 5medium Networking - Pod-to-Pod communication - Quiz 11easy Persistent Storage - PersistentVolumeClaim (PVC) definition - Quiz 3easy Persistent Storage - PersistentVolumeClaim (PVC) definition - Quiz 8hard Scheduling - Jobs and CronJobs for batch processing - Quiz 13medium Scheduling - Pod affinity and anti-affinity - Quiz 1easy Scheduling - Node selectors for simple scheduling - Quiz 11easy Scheduling - DaemonSets for per-node workloads - Quiz 12easy