class K8S::Api::Core::V1::Affinity

Overview

Affinity is a group of affinity scheduling rules.

Included Modules

Defined in:

versions/v1.23/api/core/v1/affinity.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(*, node_affinity : Api::Core::V1::NodeAffinity? = nil, pod_affinity : Api::Core::V1::PodAffinity? = nil, pod_anti_affinity : Api::Core::V1::PodAntiAffinity? = nil) #

[View source]

Instance Method Detail

def node_affinity : Api::Core::V1::NodeAffinity? #

[View source]
def node_affinity=(node_affinity : Api::Core::V1::NodeAffinity?) #

[View source]
def pod_affinity : Api::Core::V1::PodAffinity? #

[View source]
def pod_affinity=(pod_affinity : Api::Core::V1::PodAffinity?) #

[View source]
def pod_anti_affinity : Api::Core::V1::PodAntiAffinity? #

[View source]
def pod_anti_affinity=(pod_anti_affinity : Api::Core::V1::PodAntiAffinity?) #

[View source]