Interview Q&A / Docker & Kubernetes

INTERVIEW Q&A · 67 QUESTIONS

Docker & Kubernetes interview questions

Images, containers, Dockerfiles, pods and deployments, from first principles.

  1. What is the difference between liveness, readiness and startup probes in Kubernetes?

    A liveness probe asks "is this container stuck?" and Kubernetes restarts it if the probe keeps failing. A readiness probe asks "can it take traffic right now?" and a failing Pod is removed from Service load balancing without a restart. A startup probe gives slow-starting apps time to boot before the other probes begin.

    AdvancedIn-depth4 min read