What is the difference between persistent volume (PV) and persistent volume claim (PVC) in simple terms?

后端 未结 10 1692
我在风中等你
我在风中等你 2021-01-30 19:22

What is the difference between persistent volume (PV) and persistent volume claim (PVC) in Kubernetes/ Openshift by referring to documentation?

What is the difference be

10条回答
  •  日久生厌
    2021-01-30 20:20

    From the docs

    PVs are resources in the cluster. PVCs are requests for those resources and also act as claim checks to the resource.

    So a persistent volume (PV) is the "physical" volume on the host machine that stores your persistent data. A persistent volume claim (PVC) is a request for the platform to create a PV for you, and you attach PVs to your pods via a PVC.

    Something akin to

    Pod -> PVC -> PV -> Host machine
    

提交回复
热议问题