class Pyrite::Api::Core::V1::Container

Overview

A single application container that you want to run within a pod.

Defined in:

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

A single application container that you want to run within a pod.


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

A single application container that you want to run within a pod.


def self.new(*, args : Array? = nil, command : Array? = nil, env : Array? = nil, env_from : Array? = nil, image : String? = nil, image_pull_policy : String? = nil, lifecycle : Api::Core::V1::Lifecycle? = nil, liveness_probe : Api::Core::V1::Probe? = nil, name : String, ports : Array? = nil, readiness_probe : Api::Core::V1::Probe? = nil, resources : Api::Core::V1::ResourceRequirements? = nil, security_context : Api::Core::V1::SecurityContext? = nil, stdin : Bool? = nil, stdin_once : Bool? = nil, termination_message_path : String? = nil, termination_message_policy : String? = nil, tty : Bool? = nil, volume_devices : Array? = nil, volume_mounts : Array? = nil, working_dir : String? = nil) #

Instance Method Detail

def args : Array(String)? #

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

def command : Array(String)? #

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

def env : Array(Api::Core::V1::EnvVar)? #

def env=(env : Array(Api::Core::V1::EnvVar)?) #

def env_from : Array(Api::Core::V1::EnvFromSource)? #

def env_from=(env_from : Array(Api::Core::V1::EnvFromSource)?) #

def image : String? #

def image=(image : String?) #

def image_pull_policy : String? #

def image_pull_policy=(image_pull_policy : String?) #

def lifecycle : Api::Core::V1::Lifecycle? #

def lifecycle=(lifecycle : Api::Core::V1::Lifecycle?) #

def liveness_probe : Api::Core::V1::Probe? #

def liveness_probe=(liveness_probe : Api::Core::V1::Probe?) #

def name : String #

def name=(name : String) #

def ports : Array(Api::Core::V1::ContainerPort)? #

def ports=(ports : Array(Api::Core::V1::ContainerPort)?) #

def readiness_probe : Api::Core::V1::Probe? #

def readiness_probe=(readiness_probe : Api::Core::V1::Probe?) #


def resources=(resources : Api::Core::V1::ResourceRequirements?) #

def security_context : Api::Core::V1::SecurityContext? #

def security_context=(security_context : Api::Core::V1::SecurityContext?) #

def stdin : Bool? #

def stdin=(stdin : Bool?) #

def stdin_once : Bool? #

def stdin_once=(stdin_once : Bool?) #

def termination_message_path : String? #

def termination_message_path=(termination_message_path : String?) #

def termination_message_policy : String? #

def termination_message_policy=(termination_message_policy : String?) #

def tty : Bool? #

def tty=(tty : Bool?) #

def volume_devices : Array(Api::Core::V1::VolumeDevice)? #

def volume_devices=(volume_devices : Array(Api::Core::V1::VolumeDevice)?) #

def volume_mounts : Array(Api::Core::V1::VolumeMount)? #

def volume_mounts=(volume_mounts : Array(Api::Core::V1::VolumeMount)?) #

def working_dir : String? #

def working_dir=(working_dir : String?) #