Skip to main content

Deployment checklist and references

8 min read

Pod lifecycle overview

Comprehensive Checklist & References​

Pre-Production Deployment Checklist​

Pod Health Checks​

Table 1. Pod health check checklist

ItemCheckPriority
Startup ProbeConfigure a startup probe for applications with slow startup (30+ seconds)High
Liveness ProbeCheck internal state only, excluding external dependenciesRequired
Readiness ProbeCheck readiness to receive traffic. Include external dependencies only when they are per-replica (exclude dependencies shared by all replicas, which cause correlated failures)Required
Probe timingVerify that failureThreshold × periodSeconds is appropriateMedium
Probe pathsSeparate /healthz (liveness) and /ready (readiness)High
ALB health checksVerify the ALB health-check path is a valid health endpoint (it need not match the readiness probe path)High
Pod Readiness GatesUse with IP target mode or namespaces where the readiness gate is injectedMedium

Graceful Shutdown​

Table 2. Graceful Shutdown checklist

ItemCheckPriority
preStop HookAdd a sleep to wait for endpoint propagation (e.g. 5s; tune to EndpointSlice/kube-proxy update latency)Required
SIGTERM handlingImplement a SIGTERM handler in the applicationRequired
terminationGracePeriodSecondsConfigure to account for preStop + shutdown time (30-120 seconds)Required
Connection DrainingImplement cleanup logic for HTTP Keep-Alive and WebSocket connectionsHigh
Data cleanupClean up DB connections, message queues, and file handlesHigh
Readiness failureReturn a readiness probe failure response when shutdown startsMedium

Resources and Images​

Table 3. Resources and images checklist

ItemCheckPriority
Resource requests/limitsConfigure CPU/memory requests (for HPA and VPA)Required
Image sizeMinimize with multi-stage builds (target 100MB or less)Medium
Image tagsDo not use the latest tag; use semantic versioningRequired
Security scanningScan for CVEs with Trivy and GrypeHigh
non-root userRun containers as non-rootHigh

High Availability​

Table 4. High availability checklist

ItemCheckPriority
PodDisruptionBudgetConfigure minAvailable or maxUnavailable for multi-replica stateless services (singletons, batch, and leader-elected workloads are exceptions)Required
Topology SpreadConfigure distribution across multiple AZsHigh
Replica countAt least 2 for stateless HA services (3+ in production). Does not apply to singletons/stateful/batch; also consider node capacity limitsRequired
Affinity/Anti-AffinityPrevent placement on the same nodeMedium

Related Documents​

External References​

Official Kubernetes Documentation​

Official AWS Documentation​

Red Hat OpenShift Documentation​

Additional References​