Skip to main content
Version: 2.0

Create Storage Class with Cinder Backend

Select your cluster#


Select Storage Classes from Storage dropdown menu#


Click on Import YAML#


Paste the code and click import#

apiVersion: StorageClassmetadata:  name: cinderprovisioner: Deleteparameters:  availability: nova


Now we able to use Cinder Volume as storage class#


Create a PVC#

Navigate to your cluster default project#


Switch to Volumes tab and click Add Volume#


Select cinder from Storage Class and Create#


Check point#

  • a volume has been created under Project > Volumes > Volumes


Create a sample workload with pv/pvc#

apiVersion: v1kind: Podmetadata:  name: my-cinder-pv-pod-1spec:  volumes:    - name: my-cinder-pv-storage-1      persistentVolumeClaim:        claimName: pv  containers:    - name: task-pv-container-1      image: nginx      ports:        - containerPort: 80          name: "http-server"      volumeMounts:        - mountPath: "/usr/share/nginx/html"          name: my-cinder-pv-storage-1

Enter your workload shell and check up#


Shell: task-pv-container-1#

[email protected]:/# lsblkNAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTsda       8:0    0   40G  0 disk |-sda1    8:1    0 39.9G  0 part /etc/hosts|-sda14   8:14   0    4M  0 part `-sda15   8:15   0  106M  0 part sdb       8:16   0   10G  0 disk /usr/share/nginx/html[email protected]:/# cd /usr/share/nginx/html/[email protected]:/usr/share/nginx/html# lslost+found[email protected]:/usr/share/nginx/html# echo "" >> index.html[email protected]:/usr/share/nginx/html# cat index.html[email protected]:/usr/share/nginx/html# 

Check point#

  • The cinder volume has been attached to your cluster


Last updated on by Roy Tan