kube-descheduler

by tjungbauer

Helm chartv1.0.3Apache-2.0Verified publisher

Setup and configure the Kube Descheduler Operator to evict pods based on specific strategies

About this chart

kube-descheduler

Description

Setup and configure the Kube Descheduler Operator to evict pods based on specific strategies

This chart renders the cluster-scoped KubeDescheduler custom resource (operator.openshift.io/v1) in openshift-kube-descheduler-operator. It configures descheduling interval, mode, logging, strategy profiles, optional profile customizations, and eviction limits.

The OpenShift Descheduler Operator must already be installed (OLM package cluster-kube-descheduler-operator). This chart does not deploy the operator or its subscription.

Use mode: Predictive to simulate evictions before switching to Automatic. Invalid values for mode, logLevel, operatorLogLevel, profiles, and the dev* threshold fields fail at helm template / install time.

Operator reference: https://github.com/openshift/cluster-kube-descheduler-operator

Dependencies

This chart has the following dependencies:

RepositoryNameVersion
https://charts.stderr.at/tpl~1.0.27

Typical use is GitOps (for example Argo CD) together with a separate chart or manifest that installs the operator.

Maintainers

NameEmailUrl
tjungbauer[email protected]https://blog.stderr.at/

Sources

Source:

Source code: https://github.com/tjungbauer/helm-charts/tree/main/charts/kube-descheduler

Parameters

  • tpl — shared labels and annotations helpers

Values

namespace

KeyTypeDefaultDescription
descheduler.additionalAnnotationsobject{}Additional labels to add as key: value pairs.
descheduler.additionalLabelsobject{}Additional labels to add as key: value pairs.

Other Values

KeyTypeDefaultDescription
descheduler.deschedulingIntervalSecondsint3600The descheduling interval in seconds. Sets the number of seconds between descheduler runs.
descheduler.enabledboolfalseEnable or disable the KubeDescheduler CR creation
descheduler.evictionLimitsstring{}Eviction limits to restrict the number of evictions during each descheduling run
descheduler.logLevelstringNormalLog level for the descheduler component (operand). Valid values: Normal, Debug, Trace, TraceAll
descheduler.modestringPredictiveDescheduling mode. Mode configures the descheduler to either evict pods (Automatic) or to simulate the eviction (Predictive) Valid values: - Predictive: The descheduler only simulates eviction (default) - Automatic: The descheduler actively evicts pods
descheduler.operatorLogLevelstringNormalLog level for the descheduler operator. Valid values: Normal, Debug, Trace, TraceAll
descheduler.profileCustomizationsobject{}Profile customizations to modify default behavior of certain profiles
descheduler.profileCustomizations.namespacesobject{}Namespace configuration for all strategies
descheduler.profileCustomizations.namespaces.excludedlist[]List of namespaces to exclude from descheduling
descheduler.profileCustomizations.namespaces.includedlist[]List of namespaces to include (cannot include protected namespaces: kube-system, hypershift, and openshift-* prefixed namespaces)
descheduler.profileslist[]List of descheduler profiles to enable. Multiple profiles can be combined. Available profiles: - AffinityAndTaints: Evicts pods violating node/pod affinity and node taints - TopologyAndDuplicates: Balances pod distribution based on topology constraints - SoftTopologyAndDuplicates: Same as TopologyAndDuplicates but includes soft constraints - LifecycleAndUtilization: Focuses on pod lifecycles and node resource consumption - LongLifecycle: Similar to LifecycleAndUtilization but without 24h pod lifetime eviction - CompactAndScale: Evicts pods to enable workload consolidation on fewer nodes - KubeVirtRelieveAndMigrate: Optimized for KubeVirt workloads with live migration support - EvictPodsWithPVC: Allows eviction of pods with PVCs (use with other profiles) - EvictPodsWithLocalStorage: Allows eviction of pods with local storage
descheduler.syncwaveint10Syncwave for Argo CD

Example values

---
descheduler:
  enabled: true
  syncwave: 10

  deschedulingIntervalSeconds: 3600
  mode: Predictive
  logLevel: Normal
  operatorLogLevel: Normal

  profiles:
    - AffinityAndTaints
    - LifecycleAndUtilization

  profileCustomizations:
    namespaces:
      excluded:
        - openshift-monitoring

  # evictionLimits:
  #   total: 10
  #   node: 2

Installing the Chart

To install the chart with the release name my-release:

helm install my-release tjungbauer/<chart-name>>

The command deploys the chart on the Kubernetes cluster in the default configuration.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.


Autogenerated from chart metadata using helm-docs v1.14.2

Deploy kube-descheduler with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kube-descheduler on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkube-descheduler is pinned at v1.0.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply