Shared PersistenceVolumeClaim(PVC) across namespaces

Obidul Islam picture Obidul Islam · Jun 21, 2018 · Viewed 14k times · Source

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.

Answer

Konstantin Vustin picture Konstantin Vustin · Jun 21, 2018

It looks impossible, just because PersistentVolumeClaim is a namespaced object. You can look detailed answer here: https://stackoverflow.com/a/35366775/9065705