Kubernetes tips #1 – kubedf

By | 2020-03-10

If you want to check the actual usage of the PVCs, you can do it easily with kubedf .

It requires the “jq” tool, which you can install by your package manager. (Eg.: apt install jq)

Save the script into file called kubedf and set the execute right.

chmod +x kubedf

kubectl proxy is required to be running. Then you can use it.

$ ./kubedf.sh 
PVC       1K-blocks   Used Available Use%
mongo-pvc   5029504 329200   4683920   7%
$ ./kubedf.sh -h
PVC       Size Used Avail Use%
mongo-pvc 4.8G 322M  4.5G   7%