class K8S::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 matches that of any node on which a pod of the set of pods is running

Included Modules

Defined in:

versions/v1.14/api/core/v1/pod_affinity_term.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, topology_key : String, label_selector : Apimachinery::Apis::Meta::V1::LabelSelector? = nil, namespaces : Array? = nil) #

[View source]

Instance Method Detail


[View source]
def label_selector=(label_selector : Apimachinery::Apis::Meta::V1::LabelSelector?) #

[View source]
def namespaces : Array(String)? #

[View source]
def namespaces=(namespaces : Array(String)?) #

[View source]
def topology_key : String #

[View source]
def topology_key=(topology_key : String) #

[View source]