kswp is a Kubernetes cluster hygiene tool that detects and safely cleans unused resources.
For detailed installation instructions, please see the deployment documentation.
- Scan for unused resources:
kswpcan scan for unused ConfigMaps, Secrets, Services, ReplicaSets, Jobs, and Pods. - Reasoning Engine:
kswpwill tell you why a resource is considered unused. - Interactive UI: A terminal UI to visualize and manage unused resources.
- Cluster Hygiene Score: Get a score that represents the health of your cluster.
- Dependency Graph: Visualize the dependencies between your Kubernetes resources.
- Resource Exclusion: Protect critical resources from scanning and cleanup using the
kswp.io/excludeannotation. - Namespace Filtering: Target specific namespaces or exclude system-critical ones like
kube-system. - CLI Branding: Stylized ASCII banner with version information on startup.
For a full list of commands and their flags, see the command documentation.
Contributions are welcome! Please see the contributing guidelines for more information.
Please see the release process documentation for more information.
This project is licensed under the MIT License - see the LICENSE file for details.
