Interview Prep/Jenkins/Controller health, disk & upgrades

Controller pod restarts repeatedly: liveness probe failed: `Get "http://10.0.3.7:8080/login": context deadline exceeded`

IntermediateTroubleshootingController health, disk & upgrades
Answer

Likely causes → Startup takes longer than the probe allows (many jobs, slow disk), or long GC pauses make /login unresponsive.

Diagnose → kubectl -n jenkins describe pod jenkins-0 events; controller logs around startup; GC logs.

Fix → Add a startupProbe with a generous failureThreshold (e.g. 60 × 10 s), keep liveness lenient; fix GC pressure.

Prevent → Measure startup time after each change; keep probes aligned.

All Jenkins questions Roadmap: Jenkins

More on Controller health, disk & upgrades