You can configure node affinity, workload affinity, and workload anti-affinity in custom scheduling policies.
Custom scheduling policies depend on node labels and pod labels. You can use default labels or customize labels as required.
A simple scheduling policy allows you to configure affinity between workloads and AZs, between workloads and nodes, and between workloads.
When setting workload-workload affinity and workload-node affinity, ensure that the affinity relationships do not contradict each other; otherwise, workload deployment will fail.
For example, Workload 3 will fail to be deployed when the following conditions are met: