#[non_exhaustive]pub struct EvictionSignals {
pub memory_available: String,
pub nodefs_available: String,
pub nodefs_inodes_free: String,
pub imagefs_available: String,
pub imagefs_inodes_free: String,
pub pid_available: String,
/* private fields */
}Expand description
Eviction signals are the current state of a particular resource at a specific point in time. The kubelet uses eviction signals to make eviction decisions by comparing the signals to eviction thresholds, which are the minimum amount of the resource that should be available on the node.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.memory_available: StringOptional. Memory available (i.e. capacity - workingSet), in bytes. Defines the amount of “memory.available” signal in kubelet. Default is unset, if not specified in the kubelet config. Format: positive number + unit, e.g. 100Ki, 10Mi, 5Gi. Valid units are Ki, Mi, Gi. Must be >= 100Mi and <= 50% of the node’s memory. See https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#eviction-signals
nodefs_available: StringOptional. Amount of storage available on filesystem that kubelet uses for volumes, daemon logs, etc. Defines the amount of “nodefs.available” signal in kubelet. Default is unset, if not specified in the kubelet config. It takses percentage value for now. Sample format: “30%”. Must be >= 10% and <= 50%. See https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#eviction-signals
nodefs_inodes_free: StringOptional. Amount of inodes available on filesystem that kubelet uses for volumes, daemon logs, etc. Defines the amount of “nodefs.inodesFree” signal in kubelet. Default is unset, if not specified in the kubelet config. Linux only. It takses percentage value for now. Sample format: “30%”. Must be >= 5% and <= 50%. See https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#eviction-signals
imagefs_available: StringOptional. Amount of storage available on filesystem that container runtime uses for storing images layers. If the container filesystem and image filesystem are not separate, then imagefs can store both image layers and writeable layers. Defines the amount of “imagefs.available” signal in kubelet. Default is unset, if not specified in the kubelet config. It takses percentage value for now. Sample format: “30%”. Must be >= 15% and <= 50%. See https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#eviction-signals
imagefs_inodes_free: StringOptional. Amount of inodes available on filesystem that container runtime uses for storing images layers. Defines the amount of “imagefs.inodesFree” signal in kubelet. Default is unset, if not specified in the kubelet config. Linux only. It takses percentage value for now. Sample format: “30%”. Must be >= 5% and <= 50%. See https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#eviction-signals
pid_available: StringOptional. Amount of PID available for pod allocation. Defines the amount of “pid.available” signal in kubelet. Default is unset, if not specified in the kubelet config. It takses percentage value for now. Sample format: “30%”. Must be >= 10% and <= 50%. See https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#eviction-signals
Implementations§
Source§impl EvictionSignals
impl EvictionSignals
pub fn new() -> Self
Sourcepub fn set_memory_available<T: Into<String>>(self, v: T) -> Self
pub fn set_memory_available<T: Into<String>>(self, v: T) -> Self
Sets the value of memory_available.
Sourcepub fn set_nodefs_available<T: Into<String>>(self, v: T) -> Self
pub fn set_nodefs_available<T: Into<String>>(self, v: T) -> Self
Sets the value of nodefs_available.
Sourcepub fn set_nodefs_inodes_free<T: Into<String>>(self, v: T) -> Self
pub fn set_nodefs_inodes_free<T: Into<String>>(self, v: T) -> Self
Sets the value of nodefs_inodes_free.
Sourcepub fn set_imagefs_available<T: Into<String>>(self, v: T) -> Self
pub fn set_imagefs_available<T: Into<String>>(self, v: T) -> Self
Sets the value of imagefs_available.
Sourcepub fn set_imagefs_inodes_free<T: Into<String>>(self, v: T) -> Self
pub fn set_imagefs_inodes_free<T: Into<String>>(self, v: T) -> Self
Sets the value of imagefs_inodes_free.
Sourcepub fn set_pid_available<T: Into<String>>(self, v: T) -> Self
pub fn set_pid_available<T: Into<String>>(self, v: T) -> Self
Sets the value of pid_available.
Trait Implementations§
Source§impl Clone for EvictionSignals
impl Clone for EvictionSignals
Source§fn clone(&self) -> EvictionSignals
fn clone(&self) -> EvictionSignals
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more