When the HPA scales down, ingress-nginx logs "no live upstreams while connecting to upstream" and users get 503.

IntermediateTroubleshooting5xx errors
Answer

Likely causes → Pods are removed before ingress-nginx updates its upstream list, or a scale-down removed so many pods at once that the remaining ones were briefly overloaded and failed readiness.

Diagnose →

kubectl logs -n ingress-nginx deploy/ingress-nginx-controller | grep 'no live upstreams'
kubectl describe hpa api -n prod | sed -n '/Events/,$p'

Fix → Add a preStop sleep and graceful shutdown, and slow down scale-down.

Prevent →

behavior:
  scaleDown:
    stabilizationWindowSeconds: 300
    policies: [{ type: Percent, value: 10, periodSeconds: 60 }]
All Real-World Interview questions Roadmap: Interview readiness

More on 5xx errors