From 006240ee1a72c4f6307a270581ca3baf5c62a49d Mon Sep 17 00:00:00 2001
From: rasmus <rasmus@k-space.ee>
Date: Sun, 20 Apr 2025 16:01:01 +0300
Subject: [PATCH] sync cluster deviation: pve-csi storageclass provisioners

minio-clusters: kustomization; disable unused and outdated shared and dedicated
---
 mysql-clusters/storageclass.yaml    | 13 +++++++++++--
 postgres-clusters/storageclass.yaml | 13 +++++++++++--
 redis-clusters/storageclass.yaml    | 14 ++++++++++++--
 3 files changed, 34 insertions(+), 6 deletions(-)

diff --git a/mysql-clusters/storageclass.yaml b/mysql-clusters/storageclass.yaml
index 3af0f6d..c0ca5a5 100644
--- a/mysql-clusters/storageclass.yaml
+++ b/mysql-clusters/storageclass.yaml
@@ -3,9 +3,18 @@ apiVersion: storage.k8s.io/v1
 kind: StorageClass
 metadata:
   name: mysql
-provisioner: rawfile.csi.openebs.io
+  annotations:
+    kubernetes.io/description: |
+      Storage class for MySQL, MariaDB and similar applications that
+      implement high availability in application layer.
+      This storage class uses XFS, has no block level redundancy and
+      has block device level caching disabled.
+provisioner: csi.proxmox.sinextra.dev
 reclaimPolicy: Retain
 volumeBindingMode: WaitForFirstConsumer
 allowVolumeExpansion: true
 parameters:
-  fsType: "xfs"
+  csi.storage.k8s.io/fstype: xfs
+  storage: ks-pvs
+  cache: none
+  ssd: "true"
diff --git a/postgres-clusters/storageclass.yaml b/postgres-clusters/storageclass.yaml
index 68ca31f..7bc12ce 100644
--- a/postgres-clusters/storageclass.yaml
+++ b/postgres-clusters/storageclass.yaml
@@ -3,9 +3,18 @@ apiVersion: storage.k8s.io/v1
 kind: StorageClass
 metadata:
   name: postgres
-provisioner: rawfile.csi.openebs.io
+  annotations:
+    kubernetes.io/description: |
+      Storage class for Postgres, Postgis and similar applications that
+      implement high availability in application layer.
+      This storage class uses XFS, has no block level redundancy and
+      has block device level caching disabled.
+provisioner: csi.proxmox.sinextra.dev
 reclaimPolicy: Retain
 volumeBindingMode: WaitForFirstConsumer
 allowVolumeExpansion: true
 parameters:
-  fsType: "xfs"
+  csi.storage.k8s.io/fstype: xfs
+  storage: ks-pvs
+  cache: none
+  ssd: "true"
diff --git a/redis-clusters/storageclass.yaml b/redis-clusters/storageclass.yaml
index 895482f..c29253c 100644
--- a/redis-clusters/storageclass.yaml
+++ b/redis-clusters/storageclass.yaml
@@ -3,9 +3,19 @@ apiVersion: storage.k8s.io/v1
 kind: StorageClass
 metadata:
   name: redis
-provisioner: rawfile.csi.openebs.io
+  annotations:
+    kubernetes.io/description: |
+      Storage class for Redis, KeyDB, DragonflyDB and similar applications
+      deployed in highly available fashion utilizing application level
+      replication needing persistent volume for storing the snapshots.
+      This storage class uses XFS, has no block level redundancy and
+      has block device level caching disabled.
+provisioner: csi.proxmox.sinextra.dev
 reclaimPolicy: Retain
 volumeBindingMode: WaitForFirstConsumer
 allowVolumeExpansion: true
 parameters:
-  fsType: "xfs"
+  csi.storage.k8s.io/fstype: xfs
+  storage: ks-pvs
+  cache: none
+  ssd: "true"