Welcome to the Linux Foundation Forum!

Persistent Volume question

Hello,

I am trying to understand the idea behind the technical design of pv and pvc. What was the reason to not let a pod mount a pv directly? In other words, why is there an extra layer or step in the form of the pvc object?

Comments

  • Hi @rzadzins,

    You are correct, the PVC object does add an extra layer of abstraction. But this way it allows for the complexity of the PV mounting to be decoupled from the Pod object, which is already quite complex to configure. And this also reflects the principles of distributed and decoupled microservices that Kubernetes was built upon.

    Regards ,
    -Chris

  • Thank you for the explanation!

Categories

Upcoming Training