pub struct Affinity {
pub node_affinity: Option<NodeAffinity>,
pub pod_affinity: Option<PodAffinity>,
pub pod_anti_affinity: Option<PodAntiAffinity>,
}
Expand description
Affinity is a group of affinity scheduling rules.
Fields
node_affinity: Option<NodeAffinity>
Describes node affinity scheduling rules for the pod.
pod_affinity: Option<PodAffinity>
Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
pod_anti_affinity: Option<PodAntiAffinity>
Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Affinity
impl UnwindSafe for Affinity
Blanket Implementations
Mutably borrows from an owned value. Read more