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

Defined in:

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

Constructors

Instance Method Summary

Constructor methods inherited from class Pyrite::Kubernetes::Spec

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(pull : JSON::PullParser)
new

Constructor Detail

def self.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


def self.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


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

Instance Method Detail


def label_selector=(label_selector : Apimachinery::Apis::Meta::V1::LabelSelector?) #

def namespaces : Array(String)? #

def namespaces=(namespaces : Array(String)?) #

def topology_key : String #

def topology_key=(topology_key : String) #