Stas  Fanin
Stas Fanin

Reputation: 11

Policy pod start at eviction

I have a problem: I use eviction policies (evict-soft and evict-hard) and when my pods are being evicted out beacause of resource lack on one node, pod dies and starts on another node, so, that during this time service is down. What can I do to make pod first start on another node before being killed on the first?

Upvotes: 1

Views: 177

Answers (1)

coderanger
coderanger

Reputation: 54249

Run two of them and use a pod disruption budget so it won’t do a soft evict of both at the same time (or use affinity settings so they run on different nodes, or both).

Upvotes: 1

Related Questions