Open
Description
General Question
How to set pod anti affinity?
It is necessary to ensure that the database node is scheduled in different workers, you can refer to the following configuration of the anti-affinity of POD.
podPolicy:
...
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: mysql.radondb.com/cluster
operator: In
values:
- sample
topologyKey: "kubernetes.io/hostname"