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:
| Key | Type | Default | Description |
|---|---|---|---|
replicaCount | int | 1 | Number of operator replicas |
image.repository | string | ghcr.io/wenisch-tech/chronoreaper | Operator image repository |
image.tag | string | "" | Image tag (falls back to chart appVersion) |
image.pullPolicy | string | IfNotPresent | Image pull policy |
operator.checkInterval | string | 60s | TTL scan interval |
operator.dryRun | bool | false | Log deletions without actually deleting |
serviceAccount.create | bool | true | Create service account |
serviceAccount.name | string | chronoreaper | Service account name |
resources.requests.cpu | string | 100m | Requested CPU |
resources.requests.memory | string | 128Mi | Requested memory |
resources.limits.cpu | string | 500m | CPU limit |
resources.limits.memory | string | 256Mi | Memory limit |
nodeSelector | object | {} | Pod node selector |
tolerations | list | [] | Pod tolerations |
affinity | object | {} | 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/liveon port8081 - Readiness:
/q/health/readyon port8081 - Metrics:
/q/metricson port8081
Security Notes
The chart enables a restrictive default security context:
runAsNonRoot: trueallowPrivilegeEscalation: falsereadOnlyRootFilesystem: 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartchronoreaper is pinned at v1.1.10 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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