本文介绍了跨名称空间共享PersistenceVolumeClaim(PVC)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以从名称空间B引用PVC(在名称空间A中).为什么我需要那?我想允许客户(私有云)通过PVC指向其卷,从而使他们能够完全控制存储.在Helm安装时,将要求提供PVC信息,并将在pod规范中使用该信息.
Is it possible to reference a PVC (in namespace-A) from namespace-B. Why I need that? I would like to allow the customer (private cloud) to point their volume through PVC, allowing them full control of the storage. At the Helm install time will ask for PVC information and will be used in the pod spec.
推荐答案
这似乎是不可能的,仅仅因为 PersistentVolumeClaim
是一个命名空间对象.您可以在此处查看详细的答案: https://stackoverflow.com/a/35366775/9065705
It looks impossible, just because PersistentVolumeClaim
is a namespaced object. You can look detailed answer here: https://stackoverflow.com/a/35366775/9065705
这篇关于跨名称空间共享PersistenceVolumeClaim(PVC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!