From 3fbecab1795f77dbfeaa7a951891a8ca847bb1bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Sat, 24 Aug 2024 12:15:30 +0300 Subject: [PATCH] Move to PVE CSI provider --- storage-class.yaml | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/storage-class.yaml b/storage-class.yaml index d8a9e41..479036a 100644 --- a/storage-class.yaml +++ b/storage-class.yaml @@ -2,8 +2,19 @@ apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: - name: minio -provisioner: rancher.io/local-path + name: postgres +provisioner: rawfile.csi.openebs.io +reclaimPolicy: Retain +volumeBindingMode: WaitForFirstConsumer +allowVolumeExpansion: true +parameters: + fsType: "xfs" +--- +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: mysql +provisioner: rawfile.csi.openebs.io reclaimPolicy: Retain volumeBindingMode: WaitForFirstConsumer allowVolumeExpansion: true @@ -14,7 +25,7 @@ apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: mongo -provisioner: rancher.io/local-path +provisioner: rawfile.csi.openebs.io reclaimPolicy: Retain volumeBindingMode: WaitForFirstConsumer allowVolumeExpansion: true @@ -25,7 +36,7 @@ apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: prometheus -provisioner: rancher.io/local-path +provisioner: rawfile.csi.openebs.io reclaimPolicy: Retain volumeBindingMode: WaitForFirstConsumer allowVolumeExpansion: true @@ -55,3 +66,14 @@ parameters: dataLocality: best-effort numberOfReplicas: "3" fsType: "xfs" +--- +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: rabbitmq +provisioner: rawfile.csi.openebs.io +reclaimPolicy: Retain +volumeBindingMode: WaitForFirstConsumer +allowVolumeExpansion: true +parameters: + fsType: "xfs"