class K8S::Api::Core::V1::PodAffinityTerm
- K8S::Api::Core::V1::PodAffinityTerm
- Reference
- Object
Overview
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
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
versions/v1.14/api/core/v1/pod_affinity_term.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, topology_key : String, label_selector : Apimachinery::Apis::Meta::V1::LabelSelector? = nil, namespaces : Array? = nil)
Instance Method Summary
- #label_selector : Apimachinery::Apis::Meta::V1::LabelSelector?
- #label_selector=(label_selector : Apimachinery::Apis::Meta::V1::LabelSelector?)
- #namespaces : Array(String)?
- #namespaces=(namespaces : Array(String)?)
- #topology_key : String
- #topology_key=(topology_key : String)
Constructor Detail
def self.new(*, topology_key : String, label_selector : Apimachinery::Apis::Meta::V1::LabelSelector? = nil, namespaces : Array? = nil)
#