Skip to content
Install the CLI

Reference experimental

descheduler

These docs describe Kix's main branch, which can include changes not yet released. Read the docs for the latest release.

Kubernetes descheduler, which evicts pods that break their placement rules or crowd busy nodes so the scheduler can place them again

This page is generated from kix/packages/experimental/descheduler.

StabilityExperimental
package valuepackages.experimental.descheduler
Default software version0.37.0

Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set deps.<name> in your cluster definition. See Declaring dependencies for how required and optional dependencies work.

DependencyRequirement
prometheusOptional

Time between two descheduler runs (—descheduling-interval), a Go duration such as “5m” or ”90s”. Must be greater than zero.

  • Type: string matching the pattern ^(0|(([0-9]+(\.[0-9]*)?|\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$
  • Default: "5m"

Flags appended after the package’s own, which include --v=3 (a later --v wins). --dry-run also turns leader election off in the binary. Flags the package sets from other options are refused.

  • Type: list of string

  • Default: [ ]

  • Example:

    [
    "--v=4"
    "--client-connection-qps=20"
    ]

Container image for this instance. Set it from a pin file (kix.pins) so the deployed reference is committed and resolved.

  • Type: submodule

  • Default:

    {
    digest = "sha256:88deef34ff5c85cb69676d7073dd641bd5c35b156bc1ef4a35ca8fbf9644da98";
    pullPolicy = "IfNotPresent";
    repository = "registry.k8s.io/descheduler/descheduler";
    tag = "v0.37.0";
    }

Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.

  • Type: null or string
  • Default: the package’s digest while tag is the package’s tag, otherwise null

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

  • Type: null or string
  • Default: null

Who resolved this pin, for the record. Null when unknown.

  • Type: null or string
  • Default: null

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

  • Type: null or string
  • Default: "IfNotPresent"

Image repository, registry host included.

  • Type: string
  • Default: "registry.k8s.io/descheduler/descheduler"

When this pin was resolved, RFC 3339. Null when unknown.

  • Type: null or string
  • Default: null

Revision of the source the image was built from, when Kix built it. Null for upstream images.

  • Type: null or string
  • Default: null

Image tag. What was asked for.

  • Type: string
  • Default: "v0.37.0"

Enable metrics endpoint and monitoring resources (ServiceMonitor, PrometheusRules) when prometheus is available.

  • Type: boolean
  • Default: true

Scrape interval (e.g. ”30s”). Null = use Prometheus default.

  • Type: null or string
  • Default: null

The DeschedulerPolicy, typed field by field with upstream’s names; the package adds apiVersion and kind. Profiles run in name order.

Every profile gets DefaultEvictor nodeFit = true and podProtections.extraEnabled = [ "PodsWithPVC" ]; the binary’s own protections (PodsWithLocalStorage, DaemonSetPods, SystemCriticalPods, and FailedBarePods) stay on. So a pod with an emptyDir, hostPath, or PersistentVolumeClaim volume is never evicted. The example’s spread-tmp profile lets the topology-spread plugin move one selected workload whose emptyDir holds nothing worth keeping.

A profile that enables RemovePodsViolatingNodeTaints gets excludedTaints = [ "node.kubernetes.io/unschedulable" ] while its includedTaints is empty, so kubectl cordon does not drain the node. Setting excludedTaints replaces that list; keep "node.kubernetes.io/unschedulable" in yours to keep that.

Each value of profile default is a default of its own: thresholds.cpu = 30 keeps the other thresholds, while plugins.balance.enabled = [ … ] replaces that list. profiles = lib.mkForce { mine = { … }; } replaces the default profile; the safety defaults above still apply. An extraEnabled list adds to PodsWithPVC; removing it takes lib.mkForce.

A profile’s pluginConfig renders DefaultEvictor and the plugins that profile enables. Settings of a plugin it does not enable are left out of the ConfigMap.

For a field a newer image accepts and this option does not declare, replace the policyConfigMap part through partsOverlays with a ConfigMap of the same name holding your own policy.yaml; the mount and the rollout checksum follow it.

  • Type: submodule

  • Default: profile default: balance RemoveDuplicates, RemovePodsViolatingTopologySpreadConstraint, and LowNodeUtilization (thresholds 20, targetThresholds 50 for cpu, memory, and pods); deschedule RemovePodsHavingTooManyRestarts (100, init containers included), RemovePodsViolatingNodeTaints (excluding node.kubernetes.io/unschedulable), RemovePodsViolatingNodeAffinity (required), and RemovePodsViolatingInterPodAntiAffinity

  • Example:

    {
    profiles.default.pluginConfig.LowNodeUtilization.thresholds.cpu = 30;
    profiles.spread-tmp = {
    plugins.balance.enabled = [ "RemovePodsViolatingTopologySpreadConstraint" ];
    pluginConfig.DefaultEvictor = {
    labelSelector.matchLabels."app.kubernetes.io/name" = "web";
    podProtections.defaultDisabled = [ "PodsWithLocalStorage" ];
    };
    };
    }

Emit an Event when an eviction fails.

  • Type: null or boolean
  • Default: null

Grace period passed with each eviction. Null uses each pod’s own.

  • Type: null or (unsigned integer, meaning >=0)
  • Default: null

Most pods evicted from one namespace per run.

  • Type: null or (unsigned integer, meaning >=0)
  • Default: null

Most pods evicted from one node per run.

  • Type: null or (unsigned integer, meaning >=0)
  • Default: null

Most pods evicted per run.

  • Type: null or (unsigned integer, meaning >=0)
  • Default: null

Sources of actual usage for the node-utilization plugins. At most one entry.

  • Type: list of (submodule)
  • Default: [ ]

Metrics source. KubernetesMetrics reads metrics.k8s.io (metrics-server).

  • Type: value "KubernetesMetrics" (singular enum)

Label selector string limiting the nodes the descheduler considers.

  • Type: null or string
  • Default: null

Descheduler profiles by name. Each runs its own plugins with its own DefaultEvictor; they run in name order.

  • Type: attribute set of (submodule)
  • Default: { }

Plugin arguments, one attrset per plugin.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.DefaultEvictor

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor”

Arguments of DefaultEvictor.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.DefaultEvictor.labelSelector

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.labelSelector”

Kubernetes label selector limiting the pods this applies to. Null selects every pod.

  • Type: null or (submodule)
  • Default: null

policy.profiles.<name>.pluginConfig.DefaultEvictor.labelSelector.matchExpressions

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.labelSelector.matchExpressions”

Label requirements, all of which must hold.

  • Type: list of (submodule)
  • Default: [ ]

policy.profiles.<name>.pluginConfig.DefaultEvictor.labelSelector.matchExpressions.*.key

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.labelSelector.matchExpressions.*.key”

Label key.

  • Type: string

policy.profiles.<name>.pluginConfig.DefaultEvictor.labelSelector.matchExpressions.*.operator

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.labelSelector.matchExpressions.*.operator”

Relation between the key and the values.

  • Type: one of "In", "NotIn", "Exists", "DoesNotExist"

policy.profiles.<name>.pluginConfig.DefaultEvictor.labelSelector.matchExpressions.*.values

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.labelSelector.matchExpressions.*.values”

Values for In and NotIn.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.DefaultEvictor.labelSelector.matchLabels

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.labelSelector.matchLabels”

Labels a pod must carry.

  • Type: attribute set of string
  • Default: { }

policy.profiles.<name>.pluginConfig.DefaultEvictor.minPodAge

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.minPodAge”

Evict only pods older than this duration.

  • Type: null or string matching the pattern ^(0|(([0-9]+(\.[0-9]*)?|\.[0-9]+)(ns|us|µs|μs|ms|s|m|h))+)$
  • Default: null

policy.profiles.<name>.pluginConfig.DefaultEvictor.minReplicas

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.minReplicas”

Evict only pods whose owner has at least this many replicas (values above 1 take effect).

  • Type: null or (unsigned integer, meaning >=0)
  • Default: null

policy.profiles.<name>.pluginConfig.DefaultEvictor.namespaceLabelSelector

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.namespaceLabelSelector”

Kubernetes label selector on namespaces; only pods in matching namespaces are evicted.

  • Type: null or (submodule)
  • Default: null

policy.profiles.<name>.pluginConfig.DefaultEvictor.namespaceLabelSelector.matchExpressions

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.namespaceLabelSelector.matchExpressions”

Label requirements, all of which must hold.

  • Type: list of (submodule)
  • Default: [ ]

policy.profiles.<name>.pluginConfig.DefaultEvictor.namespaceLabelSelector.matchExpressions.*.key

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.namespaceLabelSelector.matchExpressions.*.key”

Label key.

  • Type: string

policy.profiles.<name>.pluginConfig.DefaultEvictor.namespaceLabelSelector.matchExpressions.*.operator

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.namespaceLabelSelector.matchExpressions.*.operator”

Relation between the key and the values.

  • Type: one of "In", "NotIn", "Exists", "DoesNotExist"

policy.profiles.<name>.pluginConfig.DefaultEvictor.namespaceLabelSelector.matchExpressions.*.values

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.namespaceLabelSelector.matchExpressions.*.values”

Values for In and NotIn.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.DefaultEvictor.namespaceLabelSelector.matchLabels

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.namespaceLabelSelector.matchLabels”

Labels a pod must carry.

  • Type: attribute set of string
  • Default: { }

policy.profiles.<name>.pluginConfig.DefaultEvictor.noEvictionPolicy

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.noEvictionPolicy”

How the descheduler.alpha.kubernetes.io/prefer-no-eviction annotation is treated.

  • Type: null or one of "Preferred", "Mandatory"
  • Default: null

policy.profiles.<name>.pluginConfig.DefaultEvictor.nodeFit

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.nodeFit”

Evict a pod only when another node could run it.

  • Type: null or boolean
  • Default: null

policy.profiles.<name>.pluginConfig.DefaultEvictor.nodeSelector

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.nodeSelector”

Label selector string; only pods on matching nodes are evicted.

  • Type: null or string
  • Default: null

policy.profiles.<name>.pluginConfig.DefaultEvictor.podProtections

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.podProtections”

Which pods are never evicted.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.DefaultEvictor.podProtections.config

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.podProtections.config”

Settings for individual protections.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.DefaultEvictor.podProtections.config.PodsWithPVC

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.podProtections.config.PodsWithPVC”

PodsWithPVC settings.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.DefaultEvictor.podProtections.config.PodsWithPVC.protectedStorageClasses

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.podProtections.config.PodsWithPVC.protectedStorageClasses”

With PodsWithPVC enabled, protect only pods whose claims use these classes. Empty protects every pod with a claim.

  • Type: list of (submodule)
  • Default: [ ]

policy.profiles.<name>.pluginConfig.DefaultEvictor.podProtections.config.PodsWithPVC.protectedStorageClasses.*.name

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.podProtections.config.PodsWithPVC.protectedStorageClasses.*.name”

StorageClass name.

  • Type: non-empty string

policy.profiles.<name>.pluginConfig.DefaultEvictor.podProtections.defaultDisabled

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.podProtections.defaultDisabled”

Protections of the binary’s default set to turn off.

  • Type: list of (one of "PodsWithLocalStorage", "DaemonSetPods", "SystemCriticalPods", "FailedBarePods")
  • Default: [ ]

policy.profiles.<name>.pluginConfig.DefaultEvictor.podProtections.extraEnabled

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.podProtections.extraEnabled”

Protections added to the binary’s default set.

  • Type: list of (one of "PodsWithPVC", "PodsWithoutPDB", "PodsWithResourceClaims")
  • Default: [ ]

policy.profiles.<name>.pluginConfig.DefaultEvictor.priorityThreshold

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.priorityThreshold”

Pods at or above this priority are not evicted. Set name or value, not both.

  • Type: null or (submodule)
  • Default: null

policy.profiles.<name>.pluginConfig.DefaultEvictor.priorityThreshold.name

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.priorityThreshold.name”

PriorityClass name whose value is the threshold.

  • Type: null or string
  • Default: null

policy.profiles.<name>.pluginConfig.DefaultEvictor.priorityThreshold.value

Section titled “policy.profiles.<name>.pluginConfig.DefaultEvictor.priorityThreshold.value”

Priority value threshold.

  • Type: null or signed integer
  • Default: null

policy.profiles.<name>.pluginConfig.HighNodeUtilization

Section titled “policy.profiles.<name>.pluginConfig.HighNodeUtilization”

Arguments of HighNodeUtilization.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.HighNodeUtilization.evictableNamespaces

Section titled “policy.profiles.<name>.pluginConfig.HighNodeUtilization.evictableNamespaces”

Namespaces whose pods the plugin may evict.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.HighNodeUtilization.evictableNamespaces.exclude

Section titled “policy.profiles.<name>.pluginConfig.HighNodeUtilization.evictableNamespaces.exclude”

Namespaces whose pods are never evicted.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.HighNodeUtilization.evictionModes

Section titled “policy.profiles.<name>.pluginConfig.HighNodeUtilization.evictionModes”

Extra eviction modes.

  • Type: list of value "OnlyThresholdingResources" (singular enum)
  • Default: [ ]

policy.profiles.<name>.pluginConfig.HighNodeUtilization.numberOfNodes

Section titled “policy.profiles.<name>.pluginConfig.HighNodeUtilization.numberOfNodes”

Run only when more than this many nodes are underutilized.

  • Type: null or (unsigned integer, meaning >=0)
  • Default: null

policy.profiles.<name>.pluginConfig.HighNodeUtilization.thresholds

Section titled “policy.profiles.<name>.pluginConfig.HighNodeUtilization.thresholds”

Nodes below every one of these percentages are drained so they can be scaled down.

  • Type: attribute set of (integer or floating point number between 0 and 100 (both inclusive))
  • Default: { }

policy.profiles.<name>.pluginConfig.LowNodeUtilization

Section titled “policy.profiles.<name>.pluginConfig.LowNodeUtilization”

Arguments of LowNodeUtilization.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.LowNodeUtilization.evictableNamespaces

Section titled “policy.profiles.<name>.pluginConfig.LowNodeUtilization.evictableNamespaces”

Namespaces whose pods the plugin may evict.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.LowNodeUtilization.evictableNamespaces.exclude

Section titled “policy.profiles.<name>.pluginConfig.LowNodeUtilization.evictableNamespaces.exclude”

Namespaces whose pods are never evicted.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.LowNodeUtilization.evictionLimits

Section titled “policy.profiles.<name>.pluginConfig.LowNodeUtilization.evictionLimits”

Eviction limits for this plugin.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.LowNodeUtilization.evictionLimits.node

Section titled “policy.profiles.<name>.pluginConfig.LowNodeUtilization.evictionLimits.node”

Most pods evicted from one node per run.

  • Type: null or (unsigned integer, meaning >=0)
  • Default: null

policy.profiles.<name>.pluginConfig.LowNodeUtilization.metricsUtilization

Section titled “policy.profiles.<name>.pluginConfig.LowNodeUtilization.metricsUtilization”

Where utilization is read from.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.LowNodeUtilization.metricsUtilization.source

Section titled “policy.profiles.<name>.pluginConfig.LowNodeUtilization.metricsUtilization.source”

Read actual usage from metrics.k8s.io instead of pod requests. Needs a KubernetesMetrics entry in policy.metricsProviders.

  • Type: null or value "KubernetesMetrics" (singular enum)
  • Default: null

policy.profiles.<name>.pluginConfig.LowNodeUtilization.numberOfNodes

Section titled “policy.profiles.<name>.pluginConfig.LowNodeUtilization.numberOfNodes”

Run only when more than this many nodes are underutilized.

  • Type: null or (unsigned integer, meaning >=0)
  • Default: null

policy.profiles.<name>.pluginConfig.LowNodeUtilization.targetThresholds

Section titled “policy.profiles.<name>.pluginConfig.LowNodeUtilization.targetThresholds”

Nodes above any of these percentages are overutilized. Uses the same resource names as thresholds.

  • Type: attribute set of (integer or floating point number between 0 and 100 (both inclusive))
  • Default: { }

policy.profiles.<name>.pluginConfig.LowNodeUtilization.thresholds

Section titled “policy.profiles.<name>.pluginConfig.LowNodeUtilization.thresholds”

Nodes below every one of these percentages are underutilized.

  • Type: attribute set of (integer or floating point number between 0 and 100 (both inclusive))
  • Default: { }

policy.profiles.<name>.pluginConfig.LowNodeUtilization.useDeviationThresholds

Section titled “policy.profiles.<name>.pluginConfig.LowNodeUtilization.useDeviationThresholds”

Read thresholds as deviations from the mean node utilization.

  • Type: null or boolean
  • Default: null

policy.profiles.<name>.pluginConfig.PodLifeTime

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime”

Arguments of PodLifeTime.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.PodLifeTime.conditions

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.conditions”

Pod conditions that make a pod a candidate.

  • Type: list of (submodule)
  • Default: [ ]

policy.profiles.<name>.pluginConfig.PodLifeTime.conditions.*.minTimeSinceLastTransitionSeconds

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.conditions.*.minTimeSinceLastTransitionSeconds”

Seconds since the condition last changed.

  • Type: null or (unsigned integer, meaning >=0)
  • Default: null

policy.profiles.<name>.pluginConfig.PodLifeTime.conditions.*.reason

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.conditions.*.reason”

Condition reason.

  • Type: null or string
  • Default: null

policy.profiles.<name>.pluginConfig.PodLifeTime.conditions.*.status

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.conditions.*.status”

Condition status.

  • Type: null or string
  • Default: null

policy.profiles.<name>.pluginConfig.PodLifeTime.conditions.*.type

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.conditions.*.type”

Pod condition type.

  • Type: null or string
  • Default: null

policy.profiles.<name>.pluginConfig.PodLifeTime.exitCodes

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.exitCodes”

Container exit codes that make a pod a candidate.

  • Type: list of signed integer
  • Default: [ ]

policy.profiles.<name>.pluginConfig.PodLifeTime.includingEphemeralContainers

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.includingEphemeralContainers”

Also read ephemeral container states.

  • Type: null or boolean
  • Default: null

policy.profiles.<name>.pluginConfig.PodLifeTime.includingInitContainers

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.includingInitContainers”

Also read init container states and exit codes.

  • Type: null or boolean
  • Default: null

policy.profiles.<name>.pluginConfig.PodLifeTime.labelSelector

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.labelSelector”

Kubernetes label selector limiting the pods this applies to. Null selects every pod.

  • Type: null or (submodule)
  • Default: null

policy.profiles.<name>.pluginConfig.PodLifeTime.labelSelector.matchExpressions

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.labelSelector.matchExpressions”

Label requirements, all of which must hold.

  • Type: list of (submodule)
  • Default: [ ]

policy.profiles.<name>.pluginConfig.PodLifeTime.labelSelector.matchExpressions.*.key

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.labelSelector.matchExpressions.*.key”

Label key.

  • Type: string

policy.profiles.<name>.pluginConfig.PodLifeTime.labelSelector.matchExpressions.*.operator

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.labelSelector.matchExpressions.*.operator”

Relation between the key and the values.

  • Type: one of "In", "NotIn", "Exists", "DoesNotExist"

policy.profiles.<name>.pluginConfig.PodLifeTime.labelSelector.matchExpressions.*.values

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.labelSelector.matchExpressions.*.values”

Values for In and NotIn.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.PodLifeTime.labelSelector.matchLabels

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.labelSelector.matchLabels”

Labels a pod must carry.

  • Type: attribute set of string
  • Default: { }

policy.profiles.<name>.pluginConfig.PodLifeTime.maxPodLifeTimeSeconds

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.maxPodLifeTimeSeconds”

Evict pods older than this many seconds.

  • Type: null or (unsigned integer, meaning >=0)
  • Default: null

policy.profiles.<name>.pluginConfig.PodLifeTime.namespaces

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.namespaces”

Namespaces the plugin considers.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.PodLifeTime.namespaces.exclude

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.namespaces.exclude”

Every namespace except these. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.PodLifeTime.namespaces.include

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.namespaces.include”

Only these namespaces. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.PodLifeTime.ownerKinds

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.ownerKinds”

Owner kinds considered. Set include or exclude, not both.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.PodLifeTime.ownerKinds.exclude

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.ownerKinds.exclude”

Not pods owned by these kinds.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.PodLifeTime.ownerKinds.include

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.ownerKinds.include”

Only pods owned by these kinds.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.PodLifeTime.states

Section titled “policy.profiles.<name>.pluginConfig.PodLifeTime.states”

Pod phases or container state reasons that make a pod a candidate.

  • Type: list of (one of "Running", "Pending", "Succeeded", "Failed", "Unknown", "NodeAffinity", "NodeLost", "Shutdown", "UnexpectedAdmissionError", "PodInitializing", "ContainerCreating", "ImagePullBackOff", "CrashLoopBackOff", "CreateContainerConfigError", "ErrImagePull", "CreateContainerError", "InvalidImageName", "OOMKilled", "Error", "Completed", "DeadlineExceeded", "Evicted", "ContainerCannotRun", "StartError")
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemoveDuplicates

Section titled “policy.profiles.<name>.pluginConfig.RemoveDuplicates”

Arguments of RemoveDuplicates.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.RemoveDuplicates.excludeOwnerKinds

Section titled “policy.profiles.<name>.pluginConfig.RemoveDuplicates.excludeOwnerKinds”

Owner kinds whose duplicates are left alone.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemoveDuplicates.namespaces

Section titled “policy.profiles.<name>.pluginConfig.RemoveDuplicates.namespaces”

Namespaces the plugin considers.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.RemoveDuplicates.namespaces.exclude

Section titled “policy.profiles.<name>.pluginConfig.RemoveDuplicates.namespaces.exclude”

Every namespace except these. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemoveDuplicates.namespaces.include

Section titled “policy.profiles.<name>.pluginConfig.RemoveDuplicates.namespaces.include”

Only these namespaces. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemoveFailedPods

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods”

Arguments of RemoveFailedPods.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.RemoveFailedPods.excludeOwnerKinds

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods.excludeOwnerKinds”

Owner kinds whose failed pods are left alone.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemoveFailedPods.exitCodes

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods.exitCodes”

Only pods with one of these container exit codes.

  • Type: list of signed integer
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemoveFailedPods.includingInitContainers

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods.includingInitContainers”

Also read init containers.

  • Type: null or boolean
  • Default: null

policy.profiles.<name>.pluginConfig.RemoveFailedPods.labelSelector

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods.labelSelector”

Kubernetes label selector limiting the pods this applies to. Null selects every pod.

  • Type: null or (submodule)
  • Default: null

policy.profiles.<name>.pluginConfig.RemoveFailedPods.labelSelector.matchExpressions

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods.labelSelector.matchExpressions”

Label requirements, all of which must hold.

  • Type: list of (submodule)
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemoveFailedPods.labelSelector.matchExpressions.*.key

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods.labelSelector.matchExpressions.*.key”

Label key.

  • Type: string

policy.profiles.<name>.pluginConfig.RemoveFailedPods.labelSelector.matchExpressions.*.operator

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods.labelSelector.matchExpressions.*.operator”

Relation between the key and the values.

  • Type: one of "In", "NotIn", "Exists", "DoesNotExist"

policy.profiles.<name>.pluginConfig.RemoveFailedPods.labelSelector.matchExpressions.*.values

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods.labelSelector.matchExpressions.*.values”

Values for In and NotIn.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemoveFailedPods.labelSelector.matchLabels

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods.labelSelector.matchLabels”

Labels a pod must carry.

  • Type: attribute set of string
  • Default: { }

policy.profiles.<name>.pluginConfig.RemoveFailedPods.minPodLifetimeSeconds

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods.minPodLifetimeSeconds”

Evict only failed pods older than this many seconds (upstream default 3600).

  • Type: null or (unsigned integer, meaning >=0)
  • Default: null

policy.profiles.<name>.pluginConfig.RemoveFailedPods.namespaces

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods.namespaces”

Namespaces the plugin considers.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.RemoveFailedPods.namespaces.exclude

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods.namespaces.exclude”

Every namespace except these. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemoveFailedPods.namespaces.include

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods.namespaces.include”

Only these namespaces. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemoveFailedPods.reasons

Section titled “policy.profiles.<name>.pluginConfig.RemoveFailedPods.reasons”

Only pods failed for one of these reasons.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts”

Arguments of RemovePodsHavingTooManyRestarts.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.includingInitContainers

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.includingInitContainers”

Count init container restarts too.

  • Type: null or boolean
  • Default: null

policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.labelSelector

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.labelSelector”

Kubernetes label selector limiting the pods this applies to. Null selects every pod.

  • Type: null or (submodule)
  • Default: null

policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.labelSelector.matchExpressions

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.labelSelector.matchExpressions”

Label requirements, all of which must hold.

  • Type: list of (submodule)
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.labelSelector.matchExpressions.*.key

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.labelSelector.matchExpressions.*.key”

Label key.

  • Type: string

policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.labelSelector.matchExpressions.*.operator

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.labelSelector.matchExpressions.*.operator”

Relation between the key and the values.

  • Type: one of "In", "NotIn", "Exists", "DoesNotExist"

policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.labelSelector.matchExpressions.*.values

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.labelSelector.matchExpressions.*.values”

Values for In and NotIn.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.labelSelector.matchLabels

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.labelSelector.matchLabels”

Labels a pod must carry.

  • Type: attribute set of string
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.namespaces

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.namespaces”

Namespaces the plugin considers.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.namespaces.exclude

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.namespaces.exclude”

Every namespace except these. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.namespaces.include

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.namespaces.include”

Only these namespaces. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.podRestartThreshold

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.podRestartThreshold”

Evict pods whose containers restarted at least this many times in total. Required when the plugin is enabled.

  • Type: null or (positive integer, meaning >0)
  • Default: null

policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.states

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsHavingTooManyRestarts.states”

Only pods in one of these states.

  • Type: list of (one of "Running", "CrashLoopBackOff")
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity”

Arguments of RemovePodsViolatingInterPodAntiAffinity.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.labelSelector

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.labelSelector”

Kubernetes label selector limiting the pods this applies to. Null selects every pod.

  • Type: null or (submodule)
  • Default: null

policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.labelSelector.matchExpressions

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.labelSelector.matchExpressions”

Label requirements, all of which must hold.

  • Type: list of (submodule)
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.labelSelector.matchExpressions.*.key

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.labelSelector.matchExpressions.*.key”

Label key.

  • Type: string

policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.labelSelector.matchExpressions.*.operator

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.labelSelector.matchExpressions.*.operator”

Relation between the key and the values.

  • Type: one of "In", "NotIn", "Exists", "DoesNotExist"

policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.labelSelector.matchExpressions.*.values

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.labelSelector.matchExpressions.*.values”

Values for In and NotIn.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.labelSelector.matchLabels

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.labelSelector.matchLabels”

Labels a pod must carry.

  • Type: attribute set of string
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.namespaces

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.namespaces”

Namespaces the plugin considers.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.namespaces.exclude

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.namespaces.exclude”

Every namespace except these. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.namespaces.include

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingInterPodAntiAffinity.namespaces.include”

Only these namespaces. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity”

Arguments of RemovePodsViolatingNodeAffinity.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.labelSelector

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.labelSelector”

Kubernetes label selector limiting the pods this applies to. Null selects every pod.

  • Type: null or (submodule)
  • Default: null

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.labelSelector.matchExpressions

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.labelSelector.matchExpressions”

Label requirements, all of which must hold.

  • Type: list of (submodule)
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.labelSelector.matchExpressions.*.key

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.labelSelector.matchExpressions.*.key”

Label key.

  • Type: string

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.labelSelector.matchExpressions.*.operator

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.labelSelector.matchExpressions.*.operator”

Relation between the key and the values.

  • Type: one of "In", "NotIn", "Exists", "DoesNotExist"

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.labelSelector.matchExpressions.*.values

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.labelSelector.matchExpressions.*.values”

Values for In and NotIn.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.labelSelector.matchLabels

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.labelSelector.matchLabels”

Labels a pod must carry.

  • Type: attribute set of string
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.namespaces

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.namespaces”

Namespaces the plugin considers.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.namespaces.exclude

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.namespaces.exclude”

Every namespace except these. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.namespaces.include

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.namespaces.include”

Only these namespaces. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.nodeAffinityType

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeAffinity.nodeAffinityType”

Node affinity kinds to enforce. Required when the plugin is enabled.

  • Type: list of (one of "requiredDuringSchedulingIgnoredDuringExecution", "preferredDuringSchedulingIgnoredDuringExecution")
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints”

Arguments of RemovePodsViolatingNodeTaints.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.excludedTaints

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.excludedTaints”

Taints (key or key=value) that never cause an eviction. Set excludedTaints or includedTaints, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.includePreferNoSchedule

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.includePreferNoSchedule”

Also evict for PreferNoSchedule taints.

  • Type: null or boolean
  • Default: null

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.includedTaints

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.includedTaints”

Only these taints (key or key=value) cause an eviction. Set excludedTaints or includedTaints, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.labelSelector

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.labelSelector”

Kubernetes label selector limiting the pods this applies to. Null selects every pod.

  • Type: null or (submodule)
  • Default: null

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.labelSelector.matchExpressions

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.labelSelector.matchExpressions”

Label requirements, all of which must hold.

  • Type: list of (submodule)
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.labelSelector.matchExpressions.*.key

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.labelSelector.matchExpressions.*.key”

Label key.

  • Type: string

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.labelSelector.matchExpressions.*.operator

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.labelSelector.matchExpressions.*.operator”

Relation between the key and the values.

  • Type: one of "In", "NotIn", "Exists", "DoesNotExist"

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.labelSelector.matchExpressions.*.values

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.labelSelector.matchExpressions.*.values”

Values for In and NotIn.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.labelSelector.matchLabels

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.labelSelector.matchLabels”

Labels a pod must carry.

  • Type: attribute set of string
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.namespaces

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.namespaces”

Namespaces the plugin considers.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.namespaces.exclude

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.namespaces.exclude”

Every namespace except these. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.namespaces.include

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingNodeTaints.namespaces.include”

Only these namespaces. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint”

Arguments of RemovePodsViolatingTopologySpreadConstraint.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.constraints

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.constraints”

whenUnsatisfiable values to enforce. Empty means DoNotSchedule.

  • Type: list of (one of "DoNotSchedule", "ScheduleAnyway")
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.labelSelector

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.labelSelector”

Kubernetes label selector limiting the pods this applies to. Null selects every pod.

  • Type: null or (submodule)
  • Default: null

policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.labelSelector.matchExpressions

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.labelSelector.matchExpressions”

Label requirements, all of which must hold.

  • Type: list of (submodule)
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.labelSelector.matchExpressions.*.key

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.labelSelector.matchExpressions.*.key”

Label key.

  • Type: string

policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.labelSelector.matchExpressions.*.operator

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.labelSelector.matchExpressions.*.operator”

Relation between the key and the values.

  • Type: one of "In", "NotIn", "Exists", "DoesNotExist"

policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.labelSelector.matchExpressions.*.values

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.labelSelector.matchExpressions.*.values”

Values for In and NotIn.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.labelSelector.matchLabels

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.labelSelector.matchLabels”

Labels a pod must carry.

  • Type: attribute set of string
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.namespaces

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.namespaces”

Namespaces the plugin considers.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.namespaces.exclude

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.namespaces.exclude”

Every namespace except these. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.namespaces.include

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.namespaces.include”

Only these namespaces. Set include or exclude, not both.

  • Type: list of string
  • Default: [ ]

policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.topologyBalanceNodeFit

Section titled “policy.profiles.<name>.pluginConfig.RemovePodsViolatingTopologySpreadConstraint.topologyBalanceNodeFit”

Move a pod only to a node it fits (upstream default true).

  • Type: null or boolean
  • Default: null

Plugins this profile runs, by extension point.

  • Type: submodule
  • Default: { }

Plugins that evict pods to rebalance groups or nodes.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.plugins.balance.enabled

Section titled “policy.profiles.<name>.plugins.balance.enabled”

Balance plugins this profile runs.

  • Type: list of (one of "HighNodeUtilization", "LowNodeUtilization", "RemoveDuplicates", "RemovePodsViolatingTopologySpreadConstraint")
  • Default: [ ]

Plugins that evict pods one by one.

  • Type: submodule
  • Default: { }

policy.profiles.<name>.plugins.deschedule.enabled

Section titled “policy.profiles.<name>.plugins.deschedule.enabled”

Deschedule plugins this profile runs.

  • Type: list of (one of "PodLifeTime", "RemoveFailedPods", "RemovePodsHavingTooManyRestarts", "RemovePodsViolatingInterPodAntiAffinity", "RemovePodsViolatingNodeAffinity", "RemovePodsViolatingNodeTaints")
  • Default: [ ]

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

  • Type: submodule

  • Default:

    {
    limits = {
    memory = "256Mi";
    };
    requests = {
    cpu = "500m";
    memory = "256Mi";
    };
    }

Dynamic resource claims the container uses. Null leaves it unset.

  • Type: null or (list of (submodule))
  • Default: null

Name of an entry in the pod’s resourceClaims.

  • Type: string

Request within the claim to use. Null uses the whole claim.

  • Type: null or string
  • Default: null

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "256Mi"

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "500m"

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "256Mi"