kubernetes限制命名空间的磁盘 只有requests没有limits,其中requests限制了请求的大小,但是限制不了实际使用的大小
磁盘的requests限制
apiVersion: v1 kind: ResourceQuota metadata: name: namespace-quota spec: hard: requests.storage: 60Gi
申请指定sc的requests限制,下例sc名为managed-nfs-storage
apiVersion: v1 kind: ResourceQuota metadata: name: namespace-quota spec: hard: managed-nfs-storage.storageclass.storage.k8s.io/requests.storage: 60Gi
执行yaml
kubectl apply -f c.yaml -n test1
查看ResourceQuota
kubectl get ResourceQuota -n test1
requests.ephemeral-storage为临时存储,这个临时存储有最大限制limits.ephemeral-storage
标签:限制,kubernetes,storage,ResourceQuota,命名,磁盘,requests From: https://www.cnblogs.com/xiaoxiaomuyuyu/p/17969392