class Pyrite::Api::Core::V1::Affinity

Overview

Affinity is a group of affinity scheduling rules.

Defined in:

versions/v1.14/api/core/v1/affinity.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) #

Affinity is a group of affinity scheduling rules.


def self.new(pull : JSON::PullParser) #

Affinity is a group of affinity scheduling rules.


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) #

Instance Method Detail

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

def node_affinity=(node_affinity : Api::Core::V1::NodeAffinity?) #

def pod_affinity : Api::Core::V1::PodAffinity? #

def pod_affinity=(pod_affinity : Api::Core::V1::PodAffinity?) #

def pod_anti_affinity : Api::Core::V1::PodAntiAffinity? #

def pod_anti_affinity=(pod_anti_affinity : Api::Core::V1::PodAntiAffinity?) #