Package org.cdk8s.plus24.k8s
Interface PodDisruptionBudgetSpecV1Beta1
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PodDisruptionBudgetSpecV1Beta1.Jsii$Proxy
@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-11-24T11:18:29.021Z") @Stability(Stable) public interface PodDisruptionBudgetSpecV1Beta1 extends software.amazon.jsii.JsiiSerializable
PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PodDisruptionBudgetSpecV1Beta1.Builder
A builder forPodDisruptionBudgetSpecV1Beta1
static class
PodDisruptionBudgetSpecV1Beta1.Jsii$Proxy
An implementation forPodDisruptionBudgetSpecV1Beta1
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static PodDisruptionBudgetSpecV1Beta1.Builder
builder()
default IntOrString
getMaxUnavailable()
An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e.default IntOrString
getMinAvailable()
An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e.default LabelSelector
getSelector()
Label query over pods whose evictions are managed by the disruption budget.
-
-
-
Method Detail
-
getMaxUnavailable
@Stability(Stable) @Nullable default IntOrString getMaxUnavailable()
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".
-
getMinAvailable
@Stability(Stable) @Nullable default IntOrString getMinAvailable()
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%".
-
getSelector
@Stability(Stable) @Nullable default LabelSelector getSelector()
Label query over pods whose evictions are managed by the disruption budget.A null selector selects no pods. An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods. In policy/v1, an empty selector will select all pods in the namespace.
-
builder
@Stability(Stable) static PodDisruptionBudgetSpecV1Beta1.Builder builder()
-
-