requiredDuringSchedulingIgnoredDuringExecution property

List<PodAffinityTerm>? requiredDuringSchedulingIgnoredDuringExecution
final

If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.

Implementation

final List<PodAffinityTerm>? requiredDuringSchedulingIgnoredDuringExecution;