class K8S::Api::Core::V1::Container
- K8S::Api::Core::V1::Container
- Reference
- Object
Overview
A single application container that you want to run within a pod.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.15/api/core/v1/container.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, name : String, args : Array(String)? = nil, command : Array(String)? = nil, env : Array(Api::Core::V1::EnvVar)? = nil, env_from : Array(Api::Core::V1::EnvFromSource)? = nil, image : String? = nil, image_pull_policy : String? = nil, lifecycle : Api::Core::V1::Lifecycle? = nil, liveness_probe : Api::Core::V1::Probe? = nil, ports : Array(Api::Core::V1::ContainerPort)? = 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(Api::Core::V1::VolumeDevice)? = nil, volume_mounts : Array(Api::Core::V1::VolumeMount)? = nil, working_dir : String? = nil)
Instance Method Summary
- #args : Array(String)?
- #args=(args : Array(String)?)
- #command : Array(String)?
- #command=(command : Array(String)?)
- #env : Array(Api::Core::V1::EnvVar)?
- #env=(env : Array(Api::Core::V1::EnvVar)?)
- #env_from : Array(Api::Core::V1::EnvFromSource)?
- #env_from=(env_from : Array(Api::Core::V1::EnvFromSource)?)
- #image : String?
- #image=(image : String?)
- #image_pull_policy : String?
- #image_pull_policy=(image_pull_policy : String?)
- #lifecycle : Api::Core::V1::Lifecycle?
- #lifecycle=(lifecycle : Api::Core::V1::Lifecycle?)
- #liveness_probe : Api::Core::V1::Probe?
- #liveness_probe=(liveness_probe : Api::Core::V1::Probe?)
- #name : String
- #name=(name : String)
- #ports : Array(Api::Core::V1::ContainerPort)?
- #ports=(ports : Array(Api::Core::V1::ContainerPort)?)
- #readiness_probe : Api::Core::V1::Probe?
- #readiness_probe=(readiness_probe : Api::Core::V1::Probe?)
- #resources : Api::Core::V1::ResourceRequirements?
- #resources=(resources : Api::Core::V1::ResourceRequirements?)
- #security_context : Api::Core::V1::SecurityContext?
- #security_context=(security_context : Api::Core::V1::SecurityContext?)
- #stdin : Bool?
- #stdin=(stdin : Bool?)
- #stdin_once : Bool?
- #stdin_once=(stdin_once : Bool?)
- #termination_message_path : String?
- #termination_message_path=(termination_message_path : String?)
- #termination_message_policy : String?
- #termination_message_policy=(termination_message_policy : String?)
- #tty : Bool?
- #tty=(tty : Bool?)
- #volume_devices : Array(Api::Core::V1::VolumeDevice)?
- #volume_devices=(volume_devices : Array(Api::Core::V1::VolumeDevice)?)
- #volume_mounts : Array(Api::Core::V1::VolumeMount)?
- #volume_mounts=(volume_mounts : Array(Api::Core::V1::VolumeMount)?)
- #working_dir : String?
- #working_dir=(working_dir : String?)
Constructor Detail
def self.new(*, name : String, args : Array(String)? = nil, command : Array(String)? = nil, env : Array(Api::Core::V1::EnvVar)? = nil, env_from : Array(Api::Core::V1::EnvFromSource)? = nil, image : String? = nil, image_pull_policy : String? = nil, lifecycle : Api::Core::V1::Lifecycle? = nil, liveness_probe : Api::Core::V1::Probe? = nil, ports : Array(Api::Core::V1::ContainerPort)? = 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(Api::Core::V1::VolumeDevice)? = nil, volume_mounts : Array(Api::Core::V1::VolumeMount)? = nil, working_dir : String? = nil)
#