Affinity For Scheduling
The affinity
option expects an object which sets the affinity
Kubernetes attribute for Pods.
affinity
Default Value For affinity: {}
Example: Setting Affitiny For Scheduling
containers:- image: john/appbackendaffinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: app operator: In values: - store topologyKey: "kubernetes.io/hostname"