I am deploying a kubernetes cluster always in the demo namespace. However, even after deleting my namespace, google cloud shows almost full persistent disk usage. This behaviour does not happen every time, and is likely to occour, after I did multiple deployments as below: (always 1 deployment at the same time)

kubectl create namespace demo
helm install ...
kubectl delete namespace demo

Google cloud console - All quotas

I see the image above, which shows that I am using almost 1 T, after deleting my namespace. There are no other deployments in this project.

To make sure there are no logs overflowing, I run the command:


LOGS="$(gcloud logging logs list --project=${PROJECT})"

for LOG in ${LOGS}
  gcloud logging logs delete ${LOG} \
  --project=${PROJECT} \

To make sure the namespace is deleted correctly, I run:

kubectl get ns
kubectl get all -n demo

What else can I do to clean up disks in google cloud?

  • You have allocated 872 GB of persistent disks. Your screenshot shows quota usage and not disk usage. Go to the Google Cloud Console GUI to review persistent disks and assignments. Commented Mar 20 at 22:53


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.