*** Also at [K8SPG-180] Primary pod and one of the replicas sit on the same node - Percona JIRA
Good day,
I am testing this operator following https://www.percona.com/doc/kubernetes-operator-for-postgresql/kubernetes.html
I am encountering a strange situation, which I’d like to clarify here.
Upon deployment, the primary and replica pods are as follow:
- “cluster1-78ff6f9bfd-b4f7h” sits on node11
- “cluster1-repl1-8c6d4bc57-jtwnr” sits on node09
- “cluster1-repl2-d669d5555-9f9pp” sits on node11
I believe this situation is not ideal.
Considering I have many nodes, can I prevent replicas to sit on the same node as the primary instance? I see that anti-affinity should be supported, but I can’t find reference in any documentation as to how to configure it.
Could you please help?