Your deployment pipeline is green but users report the old version is still live. What happened?
BeginnerScenarioDeployments and releases
Answer
Situation read → The pipeline reported success but the running thing didn't change. Usually caching or tagging.
What I'd do →
- Check what's actually running:
kubectl get deploy web -n prod -o jsonpath='{.spec.template.spec.containers[0].image}'
- If the image tag is
latestor reused, Kubernetes saw no spec change and didn't roll pods; or nodes used a cached image withimagePullPolicy: IfNotPresent. - For frontends, check the CDN: CloudFront still serving the old
index.html. Invalidate it:
aws cloudfront create-invalidation --distribution-id E123ABC --paths "/index.html"
- Check browser caching headers:
index.htmlshould beno-cache; hashed assets can be cached forever. - Fix the root cause: unique immutable tags (Git SHA), and a post-deploy check that queries
/version.
Why → A deploy isn't done until you verify the running version, not the pipeline status.
Interview tip → "Never deploy latest to production" is an easy point to score.
More on Deployments and releases
A deploy went out and p99 latency doubled. Walk me through it.IntermediateYou deployed a new version and half the pods are in CrashLoopBackOff. What do you do?BeginnerA release passed every test in staging but broke in production. How do you investigate?IntermediateHow would you design a zero-downtime deployment for a stateless API on Kubernetes?BeginnerEvery deploy causes a short spike of 502 errors from the ALB. Why, and how do you fix it?IntermediateHow would you set up a canary release, and what decides whether it gets promoted?Intermediate