美文网首页
[K8S]Check the usage for PV/PVC

[K8S]Check the usage for PV/PVC

作者: Mokaffee | 来源:发表于2022-12-04 16:47 被阅读0次

stackoverflow: Is there an efficient way to check the usage for PV/PVC in Kubernetes

image.png

If there's a running pod with mounted PV from the PVC,

kubectl -n <namespace> exec <pod-name> -- df -ah

...will list all file systems, including the mounted volumes, and their free disk space.

实际应用:
kubectl -n mongodb exec mongodb-0 -- df -ah

image.png

相关文章

网友评论

      本文标题:[K8S]Check the usage for PV/PVC

      本文链接:https://www.haomeiwen.com/subject/wbmvfdtx.html