KubeKleaner uses Spring Boot's scheduled task functionality along with the Kubernetes API to delete failing microservice deployments and their downstream resources based on a configurable expiration time.