descheduler

by QuenchWorks

Helm chartv0.0.21App 0.36.0Apache-2.0Verified publisher

The Kubernetes descheduler evicts running pods so the scheduler can reschedule them onto more suitable nodes, correcting drift from node taints, affinity, topology spread and utilisation over time. Hardened by QuenchWorks as a minimal, nonroot, CVE-gated image, cosign-signed and pinned by digest.

About this chart

Quenchworks descheduler

Hardened Kubernetes descheduler on a minimal, nonroot, CVE-gated image, built from source and pinned by digest.

The descheduler periodically evicts running pods so the scheduler can reschedule them onto more suitable nodes, correcting drift from node taints, affinity, topology spread and utilisation over time.

Install

helm install descheduler oci://ghcr.io/quenchworks/charts/descheduler

It runs nonroot as a Deployment and executes its descheduling loop every deschedulingInterval (default 5m). Watch it:

kubectl logs -l app.kubernetes.io/instance=descheduler -f

Verify the image

cosign verify ghcr.io/quenchworks/images/descheduler \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Each build also ships an SPDX SBOM and SLSA provenance attestation. Verify them with gh attestation verify oci://ghcr.io/quenchworks/images/descheduler --owner quenchworks.

Configuration

The chart ships a real cluster-scoped ClusterRole/ClusterRoleBinding (rbac.create=true) granting the read + pods/eviction rights the descheduler needs. The DeschedulerPolicy (descheduler/v1alpha2) is rendered from policy.config to a ConfigMap, mounted at /policy/policy.yaml and passed via --policy-config-file. Point policy.existingConfigMap (key policy.yaml) at an externally-managed ConfigMap to use that instead.

Health and metrics are served over HTTPS on metricsPort (default 10258); liveness/readiness probe /healthz with scheme HTTPS.

ValueDefaultNotes
image.repositoryghcr.io/quenchworks/images/descheduler
image.digest(CI-maintained)signed multi-arch index
replicaCount1only one active loop; use leaderElection for HA
deschedulingInterval5mloop interval
leaderElection.enabledfalserequired when replicaCount > 1; adds leases RBAC
policy.config(default policy)inline DeschedulerPolicy (mounted, --policy-config-file)
policy.existingConfigMap""external policy ConfigMap (key policy.yaml, wins)
verbosity3--v log level
extraArgs[]appended to the descheduler command
metricsPort10258HTTPS /healthz + /metrics
service.enabledtrueClusterIP Service for scraping metrics
rbac.createtrueClusterRole + ClusterRoleBinding
networkPolicy.enabledtrueingress restricted to namespace by default
podDisruptionBudget.enabledfalseenable with HA (replicaCount > 1)

High availability

For HA run multiple replicas with leader election so exactly one instance is active at a time:

helm install descheduler oci://ghcr.io/quenchworks/charts/descheduler \
  --set replicaCount=2 --set leaderElection.enabled=true \
  --set podDisruptionBudget.enabled=true

Deploy descheduler with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has 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 chartdescheduler is pinned at v0.0.21 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