tezvyn:

Design a zero-downtime Kubernetes Deployment strategy for a stateless microservice

Source: kubernetes.ioadvanced

WHAT IT TESTS: K8s rolling updates and graceful pod termination. ANSWER: set RollingUpdate with maxSurge 1 and maxUnavailable 0; use readiness probes to gate traffic; set terminationGracePeriodSeconds and preStop to drain requests.

WHAT IT TESTS: deep knowledge of Kubernetes rolling updates, probe-driven traffic gating, and graceful pod shutdown sequencing. ANSWER: configure RollingUpdate with maxSurge 1 and maxUnavailable 0 so new pods start before old ones exit; use readiness probes to block premature traffic; pair terminationGracePeriodSeconds with a preStop hook to drain in-flight requests before SIGTERM. RED FLAG: setting maxUnavailable above zero without capacity justification, or ignoring readiness probes and relying only on liveness.

Read the original → kubernetes.io

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Design a zero-downtime Kubernetes Deployment strategy for a stateless microservice · Tezvyn