From 101cc722e9c5d7874e756d55a5d27cf83cd125ab Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Thu, 11 Jul 2024 21:22:23 -0500 Subject: [PATCH] Update storage profiles. --- .../apps/cdi/cdi/app/kustomization.yaml | 1 + .../apps/cdi/cdi/app/sp-hostpath-nvme1.yaml | 26 +++++++++++++++++++ kubernetes/apps/cdi/cdi/app/sp-hostpath.yaml | 2 +- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 kubernetes/apps/cdi/cdi/app/sp-hostpath-nvme1.yaml diff --git a/kubernetes/apps/cdi/cdi/app/kustomization.yaml b/kubernetes/apps/cdi/cdi/app/kustomization.yaml index a7fe5550..8caf60f2 100644 --- a/kubernetes/apps/cdi/cdi/app/kustomization.yaml +++ b/kubernetes/apps/cdi/cdi/app/kustomization.yaml @@ -7,4 +7,5 @@ resources: - ./ingress.yaml - ./nixosdv.yaml - ./sp-hostpath.yaml + - ./sp-hostpath-nvme1.yaml - ./sp-nfs-zfs-csi.yaml diff --git a/kubernetes/apps/cdi/cdi/app/sp-hostpath-nvme1.yaml b/kubernetes/apps/cdi/cdi/app/sp-hostpath-nvme1.yaml new file mode 100644 index 00000000..f286410c --- /dev/null +++ b/kubernetes/apps/cdi/cdi/app/sp-hostpath-nvme1.yaml @@ -0,0 +1,26 @@ +--- +# 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: local-hostpath-nvme1 +spec: + claimPropertySets: + - accessModes: + - ReadWriteOnce + volumeMode: Filesystem +status: + claimPropertySets: + - accessModes: + - ReadWriteOnce + volumeMode: Block + cloneStrategy: copy + dataImportCronSourceFormat: pvc + provisioner: openebs.io/local + snapshotClass: local-hostpath-nvme1 + storageClass: local-hostpath-nvme1 diff --git a/kubernetes/apps/cdi/cdi/app/sp-hostpath.yaml b/kubernetes/apps/cdi/cdi/app/sp-hostpath.yaml index aeaf08a6..7dab98e3 100644 --- a/kubernetes/apps/cdi/cdi/app/sp-hostpath.yaml +++ b/kubernetes/apps/cdi/cdi/app/sp-hostpath.yaml @@ -21,6 +21,6 @@ status: volumeMode: Block cloneStrategy: copy dataImportCronSourceFormat: pvc - provisioner: zfs.csi.openebs.io + provisioner: openebs.io/local snapshotClass: openebs-hostpath storageClass: openebs-hostpath