简体   繁体   English

多个持久化卷声明可以绑定到 Kubernetes 中的同一个持久化卷吗

[英]Can multiple persistence volume claims bind to same persistence volume in Kubernetes

I have setup one persistence volume with 100Gi capacity and setup two different persistence volume claims with 10Gi capacity each in Kubernetes.我在 Kubernetes 中设置了一个容量为 100Gi 的持久性卷,并设置了两个不同的持久性卷声明,每个容量为 10Gi。 The first PVC in bond to the PV but the second one is in Pending state.第一个 PVC 与 PV 结合,但第二个处于待定状态。 And the "kubectl get pvc" shows the Capacity of the first PVC is 100Gi. “kubectl get pvc”显示第一个PVC的容量是100Gi。

Is it possible to bind multiple PVCs to the same PV?是否可以将多个 PVC 绑定到同一个 PV? And why the capacity show in "kubectl get pvc" is the capacity of PV, not the capacity of PVC?为什么“kubectl get pvc”中显示的容量是PV的容量,而不是PVC的容量?

thanks, Jerry谢谢,杰瑞

No thats not possible - one claim will bind the available volume and the other will be pending until another volume is available.不,那是不可能的 - 一个声明将绑定可用卷,而另一个声明将挂起,直到另一个卷可用。 Cheers干杯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM