chronoreaper

by wenisch.tech

Helm chartv1.1.10App 1.1.10AGPL-3.0-only

A Kubernetes operator that automatically deletes resources annotated with wenisch.tech/ttl when the specified UTC timestamp has passed.

About this chart

ChronoReaper Helm Chart

ChronoReaper is a Kubernetes operator that deletes resources when the wenisch.tech/ttl annotation timestamp has passed.

This chart deploys the ChronoReaper operator and its required RBAC resources.

Prerequisites

  • Kubernetes >= 1.25
  • Helm >= 3.10
  • Cluster-admin (or equivalent) permissions for cluster-scoped RBAC resources

Install

helm install chronoreaper ./helm/chronoreaper \
  --namespace chronoreaper \
  --create-namespace

Upgrade

helm upgrade chronoreaper ./helm/chronoreaper \
  --namespace chronoreaper

Uninstall

helm uninstall chronoreaper --namespace chronoreaper

Configuration

Key values from values.yaml:

KeyTypeDefaultDescription
replicaCountint1Number of operator replicas
image.repositorystringghcr.io/wenisch-tech/chronoreaperOperator image repository
image.tagstring""Image tag (falls back to chart appVersion)
image.pullPolicystringIfNotPresentImage pull policy
operator.checkIntervalstring60sTTL scan interval
operator.dryRunboolfalseLog deletions without actually deleting
serviceAccount.createbooltrueCreate service account
serviceAccount.namestringchronoreaperService account name
resources.requests.cpustring100mRequested CPU
resources.requests.memorystring128MiRequested memory
resources.limits.cpustring500mCPU limit
resources.limits.memorystring256MiMemory limit
nodeSelectorobject{}Pod node selector
tolerationslist[]Pod tolerations
affinityobject{}Pod affinity

Example overrides

helm install chronoreaper ./helm/chronoreaper \
  --namespace chronoreaper \
  --create-namespace \
  --set operator.checkInterval=30s \
  --set operator.dryRun=true

Health and Metrics

  • Liveness: /q/health/live on port 8081
  • Readiness: /q/health/ready on port 8081
  • Metrics: /q/metrics on port 8081

Security Notes

The chart enables a restrictive default security context:

  • runAsNonRoot: true
  • allowPrivilegeEscalation: false
  • readOnlyRootFilesystem: true
  • Linux capabilities drop all (ALL)

Source

  • Repository: https://github.com/wenisch-tech/ChronoReaper

Deploy chronoreaper with OpenTenant

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