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§
source§impl DeepMerge for Affinity
impl DeepMerge for Affinity
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl<'de> Deserialize<'de> for Affinity
impl<'de> Deserialize<'de> for Affinity
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more