STEP 1:
To install OpenEBS on your setup execute:
kubectl apply -f https://openebs.github.io/charts/openebs-operator-1.8.0.yaml
STEP 2:
Create a cStor Storage Pool. To know the steps click here.
STEP 3:
To create a storageClass using the pool created in the previous step. Copy the below-mentioned YAML in a file say, cstor-sc.yaml
apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: standard annotations: openebs.io/cas-type: cstor cas.openebs.io/config: | - name: StoragePoolClaim value: "cstor-disk-pool" - name: ReplicaCount value: "3" provisioner: openebs.io/provisioner-iscsi
To apply execute:
kubectl apply -f cstor-sc.yaml