From 65e30d5dec326927d0dd8b63bce104eac18ccdb0 Mon Sep 17 00:00:00 2001 From: Erki Aas Date: Sat, 24 Aug 2024 16:29:10 +0300 Subject: [PATCH] migrate most storage classes to proxmox-csi, allow it on masters --- proxmox-csi/proxmox-csi-plugin.yml | 2 ++ proxmox-csi/readme.md | 5 +++ storage-class.yaml | 51 ++++++++++++++++++++++++------ 3 files changed, 48 insertions(+), 10 deletions(-) diff --git a/proxmox-csi/proxmox-csi-plugin.yml b/proxmox-csi/proxmox-csi-plugin.yml index 75eba92..e722d16 100644 --- a/proxmox-csi/proxmox-csi-plugin.yml +++ b/proxmox-csi/proxmox-csi-plugin.yml @@ -337,6 +337,8 @@ spec: - effect: NoSchedule key: node.kubernetes.io/disk-pressure operator: Exists + - effect: NoSchedule + key: node-role.kubernetes.io/control-plane --- # Source: proxmox-csi-plugin/templates/controller-deployment.yaml apiVersion: apps/v1 diff --git a/proxmox-csi/readme.md b/proxmox-csi/readme.md index cc956ca..fc40e63 100644 --- a/proxmox-csi/readme.md +++ b/proxmox-csi/readme.md @@ -16,4 +16,9 @@ kubectl --kubeconfig ~/.kube/k-space label nodes worker2.kube.k-space.ee topology.kubernetes.io/region=pve-cluster topology.kubernetes.io/zone=pve2 --overwrite kubectl --kubeconfig ~/.kube/k-space label nodes worker3.kube.k-space.ee topology.kubernetes.io/region=pve-cluster topology.kubernetes.io/zone=pve8 --overwrite kubectl --kubeconfig ~/.kube/k-space label nodes worker4.kube.k-space.ee topology.kubernetes.io/region=pve-cluster topology.kubernetes.io/zone=pve9 --overwrite + + kubectl --kubeconfig ~/.kube/k-space label nodes master1.kube.k-space.ee topology.kubernetes.io/region=pve-cluster topology.kubernetes.io/zone=pve1 --overwrite + kubectl --kubeconfig ~/.kube/k-space label nodes master2.kube.k-space.ee topology.kubernetes.io/region=pve-cluster topology.kubernetes.io/zone=pve2 --overwrite + kubectl --kubeconfig ~/.kube/k-space label nodes master3.kube.k-space.ee topology.kubernetes.io/region=pve-cluster topology.kubernetes.io/zone=pve8 --overwrite + ``` \ No newline at end of file diff --git a/storage-class.yaml b/storage-class.yaml index 479036a..07bf750 100644 --- a/storage-class.yaml +++ b/storage-class.yaml @@ -3,45 +3,59 @@ apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: postgres -provisioner: rawfile.csi.openebs.io +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" --- apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: mysql -provisioner: rawfile.csi.openebs.io +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" --- apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: mongo -provisioner: rawfile.csi.openebs.io +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" --- apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: prometheus -provisioner: rawfile.csi.openebs.io +provisioner: csi.proxmox.sinextra.dev reclaimPolicy: Retain volumeBindingMode: WaitForFirstConsumer allowVolumeExpansion: true +parameters: + csi.storage.k8s.io/fstype: xfs + storage: ks-pvs + cache: none + ssd: "true" --- -apiVersion: storage.k8s.io/v1 +apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: woodpecker @@ -71,9 +85,26 @@ apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: rabbitmq -provisioner: rawfile.csi.openebs.io +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" +--- +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: redis +provisioner: csi.proxmox.sinextra.dev +reclaimPolicy: Retain +volumeBindingMode: WaitForFirstConsumer +allowVolumeExpansion: true +parameters: + csi.storage.k8s.io/fstype: xfs + storage: ks-pvs + cache: none + ssd: "true"