Zen Cleaner
Available
An Apache-2.0 Kubernetes cleanup controller. It removes expired
namespaced objects according to declarative ZenCleanerPolicy
TTL policies — fixed, field-based, mapped or relative expiry.
- License: Apache-2.0
- Repository: github.com/zenmesh/zen-cleaner
- Documentation: README and quick start · API reference
- Contributing: CONTRIBUTING.md
- Security: SECURITY.md
Install
Release 0.1.20 publishes a digest-bound Helm chart — install it straight from the OCI registry, no repository clone needed. The chart pins the exact released image digest.
helm upgrade --install zen-cleaner \
oci://ghcr.io/zenmesh/charts/zen-cleaner --version 0.1.20 \
--namespace zen-cleaner-system --create-namespace \
--set rbac.deleteNamespaces[0]=default
The RBAC allowlist is Jobs-only by default and the release namespace is
safety-protected. To also clean another resource kind, extend the
allowlist with every index spelled explicitly (a group-less
entry is the core API group; a partially-set index is refused loudly
rather than shipped as corrupt RBAC):
helm upgrade --install zen-cleaner \
oci://ghcr.io/zenmesh/charts/zen-cleaner --version 0.1.20 \
--namespace zen-cleaner-system --create-namespace \
--set rbac.targetKinds[0].group=batch --set rbac.targetKinds[0].resource=jobs \
--set rbac.targetKinds[1].group= --set rbac.targetKinds[1].resource=configmaps \
--set rbac.deleteNamespaces[0]=default
The chart bundles the ZenCleanerPolicy CRD. Then apply the example
policy from the repository: examples/temp-configmap-cleanup.yaml.
Full install paths (HTTP chart index, clone, from-source) in the
README.
Videos
- Quick overview (1 min 16 sec) — how Zen Cleaner fixes Kubernetes resource clutter
- Explainer (~6½ minutes) — walkthrough of the policy model and install