Create Storage Class with Ceph backend
Connect to controllerβ
Welcome to the Cube Appliance
Enter "help" for a list of available commands
run kubernetes > storage_createβ
cc2> kubernetes
cc2:kubernetes> storage_create
1: ubuntu
2: k8s
3: baremetal
Enter index: 3
{"level":"info","timestamp":"2020-11-03T15:34:58+08:00","msg":"Ceph storage class created"}
Go to your cluster and check up the Storage classβ

Select Storage Class from Storage's dropdown menuβ

a Ceph RBD storage class has been createdβ

Click on Default project under cluster - baremetalβ

on the volumes tab and click on Add Volumeβ

Create a Volume Claimβ

A new Persistent Volume Claim has been createdβ

Create a workload using PV/PVCβ
apiVersion: v1
kind: Pod
metadata:
name: my-ceph-pv-pod
spec:
volumes:
- name: my-ceph-pv-storage
persistentVolumeClaim:
claimName: my-ceph-volume
containers:
- name: task-pv-container
image: nginx
ports:
- containerPort: 80
name: "http-server"
volumeMounts:
- mountPath: "/usr/share/nginx/html"
name: my-ceph-pv-storage
Enter your workload shell and check upβ
