Class PodDisruptionBudgetSpecPatch
- java.lang.Object
-
- com.pulumi.kubernetes.policy.v1beta1.outputs.PodDisruptionBudgetSpecPatch
-
public final class PodDisruptionBudgetSpecPatch extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PodDisruptionBudgetSpecPatch.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PodDisruptionBudgetSpecPatch.Builder
builder()
static PodDisruptionBudgetSpecPatch.Builder
builder(PodDisruptionBudgetSpecPatch defaults)
java.util.Optional<com.pulumi.core.Either<java.lang.Integer,java.lang.String>>
maxUnavailable()
java.util.Optional<com.pulumi.core.Either<java.lang.Integer,java.lang.String>>
minAvailable()
java.util.Optional<LabelSelectorPatch>
selector()
-
-
-
Method Detail
-
maxUnavailable
public java.util.Optional<com.pulumi.core.Either<java.lang.Integer,java.lang.String>> maxUnavailable()
- Returns:
- 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".
-
minAvailable
public java.util.Optional<com.pulumi.core.Either<java.lang.Integer,java.lang.String>> minAvailable()
- Returns:
- 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
public java.util.Optional<LabelSelectorPatch> selector()
- Returns:
- 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
public static PodDisruptionBudgetSpecPatch.Builder builder()
-
builder
public static PodDisruptionBudgetSpecPatch.Builder builder(PodDisruptionBudgetSpecPatch defaults)
-
-