Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 618 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 618 Bytes

kubectl-unused-volumes

A kubectl plugin to gather all PVC and output all pvcs that doesn't belong to any workloads. This plugins checks for standard kubernetes workloads :

  • DaemonSet
  • Deployment
  • Job
  • StatefulSet

Quick Start

Install unused-volumes via krew

kubectl krew index add unused-volumes https://github.com/sphr2k/kubectl-unused-volumes.git
kubectl krew install unused-volumes/unused-volumes

# Scan for all unused volumes in current context and default namespace

kubectl unused-volumes

Demo

Scan Unused pvc on namespace infra