Question

Kubernetes Persistent Volumes -- 3 node cluster how would it work?

I’ve read through a few QAs regarding PVs/PVCs and understand ReadWriteOnce is supported, creates a DO Storage Block and shares with a Node.

When 3 nodes for HA are deployed, what happens? – do 3 storage blocks get created. Would my config have to be adjusted to consider 3 PVCs?

My use case would be fine with 3 separate storage blocks - nginx caching - but ReadWriteMany would be better.

Thank you!


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

As of the time being, one DigitalOcean Block storage can only be mounted to a single node.

Indeed, what you’ve mentioned of using 3 different block storages would be the way to go.

Alternatively, depending on your usecase, for storing static files, I could suggest considering an S3 storage like the DigitalOcean spaces. That way each of your services would be able to write to the S3 storage independently, and the above limitations would not apply.

Best,

Bobby