How to encrypt volume in Kubernetes Persistent volume

Posted September 17, 2020 2.1k views
Block StorageKubernetesDigitalOcean Managed KubernetesDigitalOcean Volumes


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. :)


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.

Submit an Answer
1 answer

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