Encrypt PVCs using annotations with Kubernetes Secrets in IKS
Portworx Encrypted Volumes
Portworx has two different kinds of encrypted volumes:
-
Encrypted Volumes
Encrypted volumes are regular volumes which can be accessed from only one node.
-
Encrypted Sharedv4 Volumes
Encrypted sharedv4 volume allows access to the same encrypted volume from multiple nodes.
Encryption at Storage Class level does not allow using different secret keys for different PVCs. It also does not provide a way to disable encryption for certain PVCs that are using the same secure storage class. Encryption at PVC level will override the encryption options from Storage Class.
PVC level encryption is achieved using following PVC annotations:
px/secure
- Boolean which tells to secure the PVC or notpx/secret-name
- Name of the secret used to encryptpx/secret-namespace
- Namespace of the secret (Kubernetes Secrets only)px/secret-key
- Key to be used in the secret (Kubernetes Secrets only)