This tool is designed to cleanup k3s/rke2 nodes by removing exited containers, unused images, and dangling volumes.
curl -sSL https://raw.githubusercontent.com/k3s-janitor/k3s-janitor/main/deploy.yaml | kubectl apply -f -
helm repo add support-tools https://charts.support.tools
helm repo update
helm install k3s-janitor support-tools/k3s-janitor --namespace k3s-janitor
kubectl get rolloutstatus -w -n k3s-janitor