Add openebs-zfs.

This commit is contained in:
Joseph Hanson 2024-07-20 14:50:42 -05:00
parent ad2af8b2d9
commit 4b860ff2c7
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
4 changed files with 36 additions and 2 deletions

View file

@ -39,7 +39,13 @@ spec:
enabled: false
keep: false
zfs-localpv:
enabled: false
enabled: true
zfsNode:
encrKeysDir: /var/openebs/keys
zfsPlugin:
image:
registry: quay.io/
repository: openebs/zfs-driver
lvm-localpv:
enabled: false
mayastor:
@ -49,7 +55,7 @@ spec:
lvm:
enabled: false
zfs:
enabled: false
enabled: true
replicated:
mayastor:
enabled: false

View file

@ -4,3 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
- ./storageclass.yaml
- ./volumesnapshotclass.yaml

View file

@ -0,0 +1,16 @@
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: openebs-zfs
annotations:
storageclass.kubevirt.io/is-default-virt-class: "true"
# storageclass.kubernetes.io/is-default-class: "true"
provisioner: zfs.csi.openebs.io
parameters:
recordsize: "128k"
compression: "off"
dedup: "off"
fstype: "zfs"
poolname: "nahar"
allowVolumeExpansion: true

View file

@ -0,0 +1,10 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/snapshot.storage.k8s.io/volumesnapshotclass_v1.json
kind: VolumeSnapshotClass
apiVersion: snapshot.storage.k8s.io/v1
metadata:
name: openebs-zfs
# annotations:
# snapshot.storage.kubernetes.io/is-default-class: "true"
driver: zfs.csi.openebs.io
deletionPolicy: Delete