I have a question about K8S pod anti affinity rule. What I have and what I need.
I have cross 2 data centers K8S cluster. In every DC is for example 5 nodes. I have a Deployment for Pod, which runs in 10 replicas cross all 10 nodes. For every node is 1 Pod replica. And I want to set up rule for case, if one DC will crash, to not migrate 5 replicas from crashed DC to health DC.
I found, that it could be possible to do it throught "Anti-affinity" rule, but I can't find any example for this scenario. Do you have example for it?