Prod deploy succeeded in GitHub, but the old version is still serving traffic.
AdvancedTroubleshootingDeployments, Environments & Releases
Answer
Likely causes → The workflow deployed to the wrong cluster or namespace (kubeconfig context from a previous step), applied manifests with the same tag so no rollout happened (mutable tag), a GitOps controller reverted the change, or a CDN or ingress still routes to old pods.
Diagnose →
kubectl config current-context
kubectl -n shack-prod get deploy shack-api -o jsonpath='{.spec.template.spec.containers[0].image}'
kubectl -n shack-prod rollout history deploy/shack-api
argocd app get shack-api-prod
Fix → Deploy by digest so every release changes the pod spec, set the context explicitly from the environment, and let GitOps own the change if Argo CD manages the app.
Prevent → A post-deploy verification step that calls /api/version and compares the returned SHA with github.sha.
More on Deployments, Environments & Releases
`Branch "feature/login" is not allowed to deploy to prod due to environment protection rules.`BeginnerDeploy job shows `Waiting for review: prod needs approval to start deploying changes` but no reviewer got notified.Beginner`Canceling since a higher priority waiting request for 'deploy-prod' exists`Intermediate`kubectl rollout status` timed out: `error: deployment "shack-api" exceeded its progress deadline`Intermediate`ErrImagePull ... failed to resolve reference "111122223333.dkr.ecr.ap-south-1.amazonaws.com/shack-api@sha256:...": not found` after a deploy.AdvancedRelease workflow `gh release create` fails with `HTTP 403: Resource not accessible by integration`Beginner