What are the must-have settings for a production Deployment?
BeginnerProductionReliability & Rollouts
Answer
At least 2 replicas with topology spread, readiness and liveness (and startup if slow) probes, CPU/memory requests and a memory limit, a PDB, terminationGracePeriodSeconds tuned to the app, a non-root securityContext, an immutable image tag or digest, and maxUnavailable: 0 or a low value for rollouts. Missing any of these shows up as an outage eventually.
More on Reliability & Rollouts
Why use image digests or immutable tags instead of `latest`?BeginnerWhat does a PodDisruptionBudget protect and how do you size it?BeginnerHow do you set graceful shutdown right?BeginnerWhy do rollouts sometimes cause brief 502/503 errors?BeginnerHow many replicas should you run and how do you spread them?BeginnerWhat should a readiness probe check?Beginner