First disk pool

This commit is contained in:
2025-02-03 03:20:46 +01:00
parent fa65938836
commit e47f89af27
3 changed files with 33 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
install:
helm repo add openebs https://openebs.github.io/openebs
helm repo update openebs
helm upgrade -i -n openebs --create-namespace openebs openebs/openebs -f values.yml
helm upgrade -i -n openebs --create-namespace openebs openebs/openebs -f values.yml
kubectl apply -f diskpools/zoma-dibaiyin-hdd.yml
kubectl apply -f single-hdd-sc.yml

View File

@@ -0,0 +1,11 @@
apiVersion: "openebs.io/v1beta2"
kind: DiskPool
metadata:
name: zoma-dibaiyin-hdd
namespace: openebs
spec:
node: zoma-dibaiyin
disks: ["aio:///dev/disk/by-id/wwn-0x5000c500ba15dcf7"]
topology:
labelled:
type: hdd

View File

@@ -0,0 +1,18 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: mayastor-single-hdd
parameters:
protocol: nvmf
# Single replica
repl: "1"
# Thin provision volumes
thin: "true"
# Allow expansion of volumes
allowVolumeExpansion: "true"
# Generate new filesystem's uuid when cloning
cloneFsIdAsVolumeId: "true"
# Schedule this sconly on hdd
poolAffinityTopologyLabel: |
type: hdd
provisioner: io.openebs.csi-mayastor