Upgrades take a long time because `--wait` waits on a StatefulSet with `OrderedReady` and 5 replicas. Options?
AdvancedScenarioReleases, Upgrades & Rollbacks
Answer
Situation read → Rolling a StatefulSet one pod at a time, each waiting for readiness, can exceed the timeout.
What I'd do →
- Increase
--timeoutrealistically (pods x startup time plus margin). - Use
podManagementPolicy: Parallelif the app does not need ordered startup (affects scale operations, not rolling updates). - Use
updateStrategy.rollingUpdate.maxUnavailable(beta in recent Kubernetes versions) where supported to roll several pods at once. - Separate the stateful component into its own release so app deploys do not wait on it.
Why → Waiting is correct; the fix is structure and realistic timeouts.
Interview tip → Splitting stateful components into their own release is the strong answer.
More on Releases, Upgrades & Rollbacks
A production upgrade starts failing health checks five minutes after the deploy. What do you do?BeginnerWhy would you insist on `--atomic --wait` in CI, and what is the trade-off?IntermediateYou need zero-downtime upgrades of the API with Helm. What must be true in the chart?IntermediateA pipeline was cancelled mid-upgrade and now every deploy fails with "another operation is in progress". What do you do?AdvancedA rollback is requested, but the failed release ran a migration that dropped a column. What do you do?AdvancedThe team scaled a Deployment manually to 10 replicas during a traffic spike. The next deploy scaled it back to 3. Explain and fix.Intermediate