Update an Existing Deployment in Kubernetes

@Inderpreet , please verify my issue. I update 5 replicas but 4 are up and running. 1 is scaled down. Is it possible? Any issue?


Hello, @thaw
Yes, it’s possible. If you edit/update something in the deployment and after that it applies changes so it terminates pod 1 by 1 if something is wrong in the beginning of the first pod then it won’t apply changes to rest of the pods that’s why 4 are active with old changes and 1 is down with new changes.
Let me know, what is the task?
and I see that you are using wrong image.

1 Like

It’s happening due to strategy field.

1 Like

I press “Later” in KodeKloud. So, I just asked about this issue in the community. So, I need to terminate old pods using strategy.? Then I have to edit the deployment?

you have to check the new update in the deployment and find the issue that made the pods crash causing the fifth pod not to be created.

1 Like