From ad35fc4828258741bbad2ea3694d9d82d1cac180 Mon Sep 17 00:00:00 2001 From: Erki Aas Date: Thu, 7 Aug 2025 21:06:27 +0300 Subject: [PATCH] Migrate storage classes to ceph --- storage-class.yaml | 86 +++++++++++++++++++++------------------------- 1 file changed, 40 insertions(+), 46 deletions(-) diff --git a/storage-class.yaml b/storage-class.yaml index 956683b..6611c26 100644 --- a/storage-class.yaml +++ b/storage-class.yaml @@ -7,17 +7,22 @@ metadata: kubernetes.io/description: | Storage class for Mongo 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 +provisioner: rook-ceph.rbd.csi.ceph.comt parameters: + clusterID: rook-ceph + csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner + csi.storage.k8s.io/controller-expand-secret-namespace: rook-ceph csi.storage.k8s.io/fstype: xfs - storage: ks-pvs - cache: none - ssd: "true" + csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node + csi.storage.k8s.io/node-stage-secret-namespace: rook-ceph + csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner + csi.storage.k8s.io/provisioner-secret-namespace: rook-ceph + imageFeatures: layering + imageFormat: '2' + pool: ks-nvme +reclaimPolicy: Retain +allowVolumeExpansion: true +volumeBindingMode: WaitForFirstConsumer --- apiVersion: storage.k8s.io/v1 kind: StorageClass @@ -27,17 +32,22 @@ metadata: kubernetes.io/description: | Storage class for Prometheus 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 +provisioner: rook-ceph.rbd.csi.ceph.comt parameters: + clusterID: rook-ceph + csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner + csi.storage.k8s.io/controller-expand-secret-namespace: rook-ceph csi.storage.k8s.io/fstype: xfs - storage: ks-pvs - cache: none - ssd: "true" + csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node + csi.storage.k8s.io/node-stage-secret-namespace: rook-ceph + csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner + csi.storage.k8s.io/provisioner-secret-namespace: rook-ceph + imageFeatures: layering + imageFormat: '2' + pool: ks-nvme +reclaimPolicy: Retain +allowVolumeExpansion: true +volumeBindingMode: WaitForFirstConsumer --- apiVersion: storage.k8s.io/v1 kind: StorageClass @@ -85,38 +95,22 @@ metadata: Storage class for RabbitMQ and similar applications deployed in highly available fashion utilizing application level replication needing persistent volume. - 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 +provisioner: rook-ceph.rbd.csi.ceph.comt parameters: + clusterID: rook-ceph + csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner + csi.storage.k8s.io/controller-expand-secret-namespace: rook-ceph csi.storage.k8s.io/fstype: xfs - storage: ks-pvs - cache: none - ssd: "true" ---- -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - name: redis - annotations: - kubernetes.io/description: | - Storage class for 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 + csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node + csi.storage.k8s.io/node-stage-secret-namespace: rook-ceph + csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner + csi.storage.k8s.io/provisioner-secret-namespace: rook-ceph + imageFeatures: layering + imageFormat: '2' + pool: ks-nvme reclaimPolicy: Retain -volumeBindingMode: WaitForFirstConsumer allowVolumeExpansion: true -parameters: - csi.storage.k8s.io/fstype: xfs - storage: ks-pvs - cache: none - ssd: "true" +volumeBindingMode: WaitForFirstConsumer --- apiVersion: storage.k8s.io/v1 kind: StorageClass