Create Storage Class with Ceph backend
#
Connect to controller$ ssh [email protected]Welcome to the Cube ApplianceEnter "help" for a list of available commands
storage_create
#
run kubernetes > sky2> kubernetes sky2:kubernetes> storage_create1: ubuntu2: k8s3: baremetalEnter 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 classStorage Class
from Storage's dropdown menu#
Select #
a Ceph RBD storage class has been createdDefault project
under cluster - baremetal#
Click on Add Volume
#
on the volumes tab and click on #
Create a Volume Claim#
A new Persistent Volume Claim has been created#
Create a workload using PV/PVCapiVersion: v1kind: Podmetadata: name: my-ceph-pv-podspec: 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