Struct k8s_openapi::v1_11::api::core::v1::Affinity[][src]

pub struct Affinity {
    pub node_affinity: Option<NodeAffinity>,
    pub pod_affinity: Option<PodAffinity>,
    pub pod_anti_affinity: Option<PodAntiAffinity>,
}

Affinity is a group of affinity scheduling rules.

Fields

Describes node affinity scheduling rules for the pod.

Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).

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

impl Clone for Affinity
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Affinity
[src]

Formats the value using the given formatter. Read more

impl Default for Affinity
[src]

Returns the "default value" for a type. Read more

impl PartialEq for Affinity
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'de> Deserialize<'de> for Affinity
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Affinity
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for Affinity

impl Sync for Affinity