k8s rolling updates are not working
Issue
Whenever we were deploying a new release, pods were deleting to Fix no. like 2 then scaling up as per HPA.
Cause
Whenever we use replicas alongwith hpa and the deployment happens it first sets the pod count as per replicas, then hpa kick in and set the new values. To avoid this please remove or comment replicas in your yaml file.
Relates Issues
- Old Pod is still running even after fresh deployment.
- Deployed Pod is still not created ( if only one pod was running 1).
Comments
Post a Comment