pub struct IoK8sApiPolicyV1PodDisruptionBudgetSpec {
pub max_unavailable: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>,
pub min_available: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>,
pub selector: Option<IoK8sApimachineryPkgApisMetaV1LabelSelector>,
}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<IoK8sApimachineryPkgUtilIntstrIntOrString>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<IoK8sApimachineryPkgApisMetaV1LabelSelector>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§
Source§impl Clone for IoK8sApiPolicyV1PodDisruptionBudgetSpec
impl Clone for IoK8sApiPolicyV1PodDisruptionBudgetSpec
Source§fn clone(&self) -> IoK8sApiPolicyV1PodDisruptionBudgetSpec
fn clone(&self) -> IoK8sApiPolicyV1PodDisruptionBudgetSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more