From 62176e7a987364964b50a887a704b2d6c605b4a2 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Thu, 11 Jul 2024 09:35:37 -0500 Subject: [PATCH] Add storageprofile for nfs-zfs-csi --- .../apps/cdi/cdi/app/kustomization.yaml | 3 ++- .../{storageprofile.yaml => sp-hostpath.yaml} | 2 +- .../apps/cdi/cdi/app/sp-nfs-zfs-csi.yaml | 23 +++++++++++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) rename kubernetes/apps/cdi/cdi/app/{storageprofile.yaml => sp-hostpath.yaml} (95%) create mode 100644 kubernetes/apps/cdi/cdi/app/sp-nfs-zfs-csi.yaml diff --git a/kubernetes/apps/cdi/cdi/app/kustomization.yaml b/kubernetes/apps/cdi/cdi/app/kustomization.yaml index 0672c78b..a7fe5550 100644 --- a/kubernetes/apps/cdi/cdi/app/kustomization.yaml +++ b/kubernetes/apps/cdi/cdi/app/kustomization.yaml @@ -6,4 +6,5 @@ resources: # Flux-Kustomizations - ./ingress.yaml - ./nixosdv.yaml - - ./storageprofile.yaml + - ./sp-hostpath.yaml + - ./sp-nfs-zfs-csi.yaml diff --git a/kubernetes/apps/cdi/cdi/app/storageprofile.yaml b/kubernetes/apps/cdi/cdi/app/sp-hostpath.yaml similarity index 95% rename from kubernetes/apps/cdi/cdi/app/storageprofile.yaml rename to kubernetes/apps/cdi/cdi/app/sp-hostpath.yaml index 45f91107..aeaf08a6 100644 --- a/kubernetes/apps/cdi/cdi/app/storageprofile.yaml +++ b/kubernetes/apps/cdi/cdi/app/sp-hostpath.yaml @@ -13,7 +13,7 @@ spec: claimPropertySets: - accessModes: - ReadWriteOnce - volumeMode: Block + volumeMode: Filesystem status: claimPropertySets: - accessModes: diff --git a/kubernetes/apps/cdi/cdi/app/sp-nfs-zfs-csi.yaml b/kubernetes/apps/cdi/cdi/app/sp-nfs-zfs-csi.yaml new file mode 100644 index 00000000..4e54eb6e --- /dev/null +++ b/kubernetes/apps/cdi/cdi/app/sp-nfs-zfs-csi.yaml @@ -0,0 +1,23 @@ +--- +# yaml-language-server: $schema=https://ks.hsn.dev/cdi.kubevirt.io/storageprofile_v1beta1.json +apiVersion: cdi.kubevirt.io/v1beta1 +kind: StorageProfile +metadata: + labels: + app: containerized-data-importer + app.kubernetes.io/component: storage + app.kubernetes.io/managed-by: cdi-controller + cdi.kubevirt.io: "" + name: zfs-generic-nfs-csi +spec: + claimPropertySets: + - accessModes: + - ReadWriteMany + - ReadWriteOnce + volumeMode: Block +status: + cloneStrategy: snapshot + dataImportCronSourceFormat: pvc + provisioner: org.democratic-csi.nfs + snapshotClass: zfs-generic-nfs-csi + storageClass: zfs-generic-nfs-csi