Volume Sweeper
A tool to scan and clean cloud infrastruture for unattached block volumes without kubernetes clusters persistent volumes.
Supported Clouds
- OCI
- AWS.
- GCP.
Supported Kubernetes
Any distributions + v1.19.
Prerequisits
- Kubernetes: a service account with read/update access to the cluster is required, scoped to
PV
resources. - Cloud: access is required for block volumes service (BV) with read and delete roles.
Installation
$ gem install volume_sweeper
Usage
To scan and generate a report:
volume_sweeper --account-id <ID> --cloud aws|oci
To apply deletion for unattached block volumes:
volume_sweeper --mode delete
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/abarrak/volume_sweeper.