From b5ee891c97d433b50e5a654cc5ba62a8c18f9db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Tue, 6 Dec 2022 09:06:07 +0200 Subject: [PATCH] Introduce separated storage classes per workload type --- storage-class.yaml | 55 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 storage-class.yaml diff --git a/storage-class.yaml b/storage-class.yaml new file mode 100644 index 0000000..9d0d70b --- /dev/null +++ b/storage-class.yaml @@ -0,0 +1,55 @@ +--- +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: mongo +provisioner: rawfile.csi.openebs.io +reclaimPolicy: Retain +volumeBindingMode: WaitForFirstConsumer +allowVolumeExpansion: true +parameters: + fsType: "xfs" +--- +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: minio +provisioner: rawfile.csi.openebs.io +reclaimPolicy: Retain +volumeBindingMode: WaitForFirstConsumer +allowVolumeExpansion: true +parameters: + fsType: "xfs" +--- +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: prometheus +provisioner: rawfile.csi.openebs.io +reclaimPolicy: Retain +volumeBindingMode: WaitForFirstConsumer +allowVolumeExpansion: true +parameters: + fsType: "xfs" +--- +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + 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 +parameters: + fsType: "xfs"