Add storageclass and diskpool to flux

This commit is contained in:
2025-02-11 23:59:15 +01:00
parent 78df97b5f6
commit 9eb742474e
3 changed files with 31 additions and 0 deletions

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

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

@@ -5,4 +5,6 @@ resources:
- controllers/dns-public.yaml - controllers/dns-public.yaml
- controllers/cert-manager.yaml - controllers/cert-manager.yaml
- controllers/openebs.yaml - controllers/openebs.yaml
- diskpools/zoma-dibaiyin-hdd.yaml
- configs/cluster-issuer.yaml - configs/cluster-issuer.yaml
- configs/single-hdd-sc.yaml