class K8S::Api::Core::V1::PodSpec

Overview

PodSpec is a description of a pod.

Included Modules

Defined in:

versions/v1.14/api/core/v1/pod_spec.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(*, containers : Array(Api::Core::V1::Container), active_deadline_seconds : Int32? = nil, affinity : Api::Core::V1::Affinity? = nil, automount_service_account_token : Bool? = nil, dns_config : Api::Core::V1::PodDNSConfig? = nil, dns_policy : String? = nil, enable_service_links : Bool? = nil, host_aliases : Array(Api::Core::V1::HostAlias)? = nil, host_ipc : Bool? = nil, host_network : Bool? = nil, host_pid : Bool? = nil, hostname : String? = nil, image_pull_secrets : Array(Api::Core::V1::LocalObjectReference)? = nil, init_containers : Array(Api::Core::V1::Container)? = nil, node_name : String? = nil, node_selector : Hash(String, String)? = nil, priority : Int32? = nil, priority_class_name : String? = nil, readiness_gates : Array(Api::Core::V1::PodReadinessGate)? = nil, restart_policy : String? = nil, runtime_class_name : String? = nil, scheduler_name : String? = nil, security_context : Api::Core::V1::PodSecurityContext? = nil, service_account : String? = nil, service_account_name : String? = nil, share_process_namespace : Bool? = nil, subdomain : String? = nil, termination_grace_period_seconds : Int32? = nil, tolerations : Array(Api::Core::V1::Toleration)? = nil, volumes : Array(Api::Core::V1::Volume)? = nil) #

[View source]

Instance Method Detail

def active_deadline_seconds : Int32? #

[View source]
def active_deadline_seconds=(active_deadline_seconds : Int32?) #

[View source]
def affinity : Api::Core::V1::Affinity? #

[View source]
def affinity=(affinity : Api::Core::V1::Affinity?) #

[View source]
def automount_service_account_token : Bool? #

[View source]
def automount_service_account_token=(automount_service_account_token : Bool?) #

[View source]
def containers : Array(Api::Core::V1::Container) #

[View source]
def containers=(containers : Array(Api::Core::V1::Container)) #

[View source]
def dns_config : Api::Core::V1::PodDNSConfig? #

[View source]
def dns_config=(dns_config : Api::Core::V1::PodDNSConfig?) #

[View source]
def dns_policy : String? #

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

[View source]
def enable_service_links : Bool? #

[View source]
def enable_service_links=(enable_service_links : Bool?) #

[View source]
def host_aliases : Array(Api::Core::V1::HostAlias)? #

[View source]
def host_aliases=(host_aliases : Array(Api::Core::V1::HostAlias)?) #

[View source]
def host_ipc : Bool? #

[View source]
def host_ipc=(host_ipc : Bool?) #

[View source]
def host_network : Bool? #

[View source]
def host_network=(host_network : Bool?) #

[View source]
def host_pid : Bool? #

[View source]
def host_pid=(host_pid : Bool?) #

[View source]
def hostname : String? #

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

[View source]
def image_pull_secrets : Array(Api::Core::V1::LocalObjectReference)? #

[View source]
def image_pull_secrets=(image_pull_secrets : Array(Api::Core::V1::LocalObjectReference)?) #

[View source]
def init_containers : Array(Api::Core::V1::Container)? #

[View source]
def init_containers=(init_containers : Array(Api::Core::V1::Container)?) #

[View source]
def node_name : String? #

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

[View source]
def node_selector : Hash(String, String)? #

[View source]
def node_selector=(node_selector : Hash(String, String)?) #

[View source]
def priority : Int32? #

[View source]
def priority=(priority : Int32?) #

[View source]
def priority_class_name : String? #

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

[View source]
def readiness_gates : Array(Api::Core::V1::PodReadinessGate)? #

[View source]
def readiness_gates=(readiness_gates : Array(Api::Core::V1::PodReadinessGate)?) #

[View source]
def restart_policy : String? #

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

[View source]
def runtime_class_name : String? #

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

[View source]
def scheduler_name : String? #

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

[View source]
def security_context : Api::Core::V1::PodSecurityContext? #

[View source]
def security_context=(security_context : Api::Core::V1::PodSecurityContext?) #

[View source]
def service_account : String? #

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

[View source]
def service_account_name : String? #

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

[View source]
def share_process_namespace : Bool? #

[View source]
def share_process_namespace=(share_process_namespace : Bool?) #

[View source]
def subdomain : String? #

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

[View source]
def termination_grace_period_seconds : Int32? #

[View source]
def termination_grace_period_seconds=(termination_grace_period_seconds : Int32?) #

[View source]
def tolerations : Array(Api::Core::V1::Toleration)? #

[View source]
def tolerations=(tolerations : Array(Api::Core::V1::Toleration)?) #

[View source]
def volumes : Array(Api::Core::V1::Volume)? #

[View source]
def volumes=(volumes : Array(Api::Core::V1::Volume)?) #

[View source]