PodDisruptionBudgetSpec

data class PodDisruptionBudgetSpec(val maxUnavailable: Either<Int, String>? = null, val minAvailable: Either<Int, String>? = null, val selector: LabelSelector? = null)

PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.

Constructors

Link copied to clipboard
constructor(maxUnavailable: Either<Int, String>? = null, minAvailable: Either<Int, String>? = null, selector: LabelSelector? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val maxUnavailable: Either<Int, String>? = null

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".

Link copied to clipboard
val minAvailable: Either<Int, String>? = null

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%".

Link copied to clipboard
val selector: LabelSelector? = null

Label query over pods whose evictions are managed by the disruption budget.