class Pyrite::Api::Core::V1::PodAffinityTerm
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
Defined in:
versions/v1.14/api/core/v1/pod_affinity_term.crConstructors
-
.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
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 -
.new(pull : JSON::PullParser)
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 - .new(*, label_selector : Apimachinery::Apis::Meta::V1::LabelSelector? = nil, namespaces : Array? = nil, topology_key : String)
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 methods inherited from class Pyrite::Kubernetes::Spec
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)new(pull : JSON::PullParser) new
Constructor Detail
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
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