Reputation: 7645
I need to encrypt the data on a block device and allow the Pod to access it as a volume.
I noticed its now possible on Google cloud to encrypt a new disk using Customer-Supplied Encryption Keys
Can I use self encrypted disk with Kubernetes and attach it to the Pod as volume?
If not, is there any other way to encrypt block device (for example LUKS) and use it with Pods?
Upvotes: 3
Views: 484
Reputation: 8238
My reading of the the Google docs (https://cloud.google.com/compute/docs/disks/customer-supplied-encryption) are that no key is required to mount the disk. The keys are only provided at disk creation time.
So, the following should work without changes to kubernetes:
Upvotes: 1
Reputation: 4136
There is not currently integration with this feature, but we should add it, I filed:
https://github.com/kubernetes/kubernetes/issues/13493
Currently you would have to encrypt each file individually, and use the kubernetes secrets to distribute the keys to decrypt those files.
Upvotes: 0