Struct k8s_openapi::api::policy::v1::PodDisruptionBudgetSpec [−][src]
pub struct PodDisruptionBudgetSpec {
pub max_unavailable: Option<IntOrString>,
pub min_available: Option<IntOrString>,
pub selector: Option<LabelSelector>,
}
Expand description
PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
Fields
An eviction is allowed if at most “maxUnavailable” pods selected by “selector” are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with “minAvailable”.
min_available: Option<IntOrString>
An eviction is allowed if at least “minAvailable” pods selected by “selector” will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying “100%”.
selector: Option<LabelSelector>
Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.
Trait Implementations
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PodDisruptionBudgetSpec
impl Send for PodDisruptionBudgetSpec
impl Sync for PodDisruptionBudgetSpec
impl Unpin for PodDisruptionBudgetSpec
impl UnwindSafe for PodDisruptionBudgetSpec
Blanket Implementations
Mutably borrows from an owned value. Read more