我想控制同一有状态集的各个Pod的节点相似性。说,我在3个节点的云上有一个群集,每个节点都属于一个不同的区域。我的statefulset资源具有6个副本,需要遵循以下约束。
1. Distribute pods such that each node gets 2 replicas always.
2. If one node gets down, the 2 pods running on it should not get rescheduled on other nodes and be in Pending state.
3. When that down node comes up, those 2 pending pods should come back on it.
Is there a way to achieve it?