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

pub struct PodAffinityTerm {
    pub label_selector: Option<LabelSelector>,
    pub namespaces: Option<Vec<String>>,
    pub topology_key: String,
}

Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running

Fields

A label query over a set of resources, in this case pods.

namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"

This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.

Trait Implementations

impl Clone for PodAffinityTerm
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PodAffinityTerm
[src]

Formats the value using the given formatter. Read more

impl Default for PodAffinityTerm
[src]

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

impl PartialEq for PodAffinityTerm
[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 PodAffinityTerm
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for PodAffinityTerm
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations