Skip to content

Achieving High Availability #805

Answered by onedr0p
adampetrovic asked this question in Q&A
Discussion options

You must be logged in to vote

Looking at the typical service that relies on postgres and redis, the pods enter a 'Terminating' state forever and never get rescheduled onto another healthy node

This is very dependent on the application and what underlaying storage is being used. Try this with a stateless service (like echo-server) and it should behave as you expect.

Why do pods stay in 'Terminating' state forever and not get recreated on another node?

That is a feature of statefulset, they will live on the node they were created on unless there is human interaction to say otherwise or the node becomes healthy again. The only other alternative is to use a deployment instead but even that will leave pods stuck in ter…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adampetrovic
Comment options

Answer selected by onedr0p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants