Production deploy failed halfway across five regions. How do you recover and prevent the mixed state?
AdvancedTroubleshootingSecrets, Security and Pipeline Performance
Answer
Likely causes → No wave gating, non-atomic multi-region rollout, no health gates.
Diagnose → List the version per region (kubectl --context region-x get deploy app -o jsonpath='{.spec.template.spec.containers[0].image}'), check alarms.
Fix → Pause the rollout, then either roll forward the failed regions or roll back the updated ones to the last good digest.
Prevent → Wave-based rollout with automated bake time, health gates, and per-region rollback.
More on Secrets, Security and Pipeline Performance
A secret printed in logs appears as `***` in GitHub Actions but a base64 variant is visible.Advanced`gitleaks` finds a secret in an old commit, but the file is gone now.BeginnerTrivy scan fails the pipeline: `FATAL ... failed to download vulnerability DB ... TOOMANYREQUESTS`.Intermediate`cosign verify` fails: `no matching signatures: none of the expected identities matched`.AdvancedKyverno `verifyImages` blocks all deploys after rollout: `image verification failed`.AdvancedDependabot/Renovate PRs fail CI with unrelated errors.Beginner