How to encrypt volume in Kubernetes Persistent volume


I am reaching out to find a guide on how to setup encrypted storage in digital ocean managed Kubernetes cluster? My understanding is that when a storage is provisioned it is not encrypted at rest and if someone to gain access to the block storage, anyone can mount the volume and read the data.

I would like to find out if there is away that volume is encrypted and only the pod that is requested to mount the volume can access the content in the volume. Not sure if anyone has achieved this? Any help is really appreciated. :)


Submit an answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

Our default CSI uses DO block storage. You can see in the docs here that these are indeed encrypted.

Encryption: Volumes are encrypted with LUKS (Linux Unified Key Setup). The entire storage cluster is encrypted, so snapshots of volumes are also encrypted at rest.

Hope this helps!

John Kwiatkoski