Interview Prep/GitHub Actions/Deployments, Environments & Releases

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.

All GitHub Actions questions Roadmap: GitHub Actions

More on Deployments, Environments & Releases