Skip to content

Custom StorageClasses

In addition to the StorageClasses that exist in NETWAYS Managed Kubernetes, you can also create additional, custom StorageClasses, with all parameters and options of the Cinder CSI driver and Kubernetes being usable.

For example, the following custom StorageClass can use the Ceph‑Encrypted volume type with the XFS file system, while the underlying PersistentVolume (PV) is retained after the PersistentVolumeClaim (PVC) is deleted:

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: encrypted-xfs-retain
parameters:
  csi.storage.k8s.io/fstype: xfs
  type: Ceph-Encrypted
allowVolumeExpansion: true
provisioner: cinder.csi.openstack.org
reclaimPolicy: Retain
volumeBindingMode: Immediate