class K8S::Api::Core::V1::EphemeralContainer
- K8S::Api::Core::V1::EphemeralContainer
- Reference
- Object
Overview
An EphemeralContainer is a container that may be added temporarily to an existing pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a pod is removed or restarted. If an ephemeral container causes a pod to exceed its resource allocation, the pod may be evicted. Ephemeral containers may not be added by directly updating the pod spec. They must be added via the pod's ephemeralcontainers subresource, and they will appear in the pod spec once added. This is an alpha feature enabled by the EphemeralContainers feature flag.
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
versions/v1.21/api/core/v1/ephemeral_container.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, name : String, 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, ports : Array? = nil, readiness_probe : Api::Core::V1::Probe? = nil, resources : Api::Core::V1::ResourceRequirements? = nil, security_context : Api::Core::V1::SecurityContext? = nil, startup_probe : Api::Core::V1::Probe? = nil, stdin : Bool? = nil, stdin_once : Bool? = nil, target_container_name : String? = 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 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?)
- #startup_probe : Api::Core::V1::Probe?
- #startup_probe=(startup_probe : Api::Core::V1::Probe?)
- #stdin : Bool?
- #stdin=(stdin : Bool?)
- #stdin_once : Bool?
- #stdin_once=(stdin_once : Bool?)
- #target_container_name : String?
- #target_container_name=(target_container_name : String?)
- #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? = 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, ports : Array? = nil, readiness_probe : Api::Core::V1::Probe? = nil, resources : Api::Core::V1::ResourceRequirements? = nil, security_context : Api::Core::V1::SecurityContext? = nil, startup_probe : Api::Core::V1::Probe? = nil, stdin : Bool? = nil, stdin_once : Bool? = nil, target_container_name : String? = 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)
#