migrate most storage classes to proxmox-csi, allow it on masters

This commit is contained in:
Erki Aas 2024-08-24 16:29:10 +03:00
parent 4210855827
commit 65e30d5dec
3 changed files with 48 additions and 10 deletions

View File

@ -337,6 +337,8 @@ spec:
- effect: NoSchedule - effect: NoSchedule
key: node.kubernetes.io/disk-pressure key: node.kubernetes.io/disk-pressure
operator: Exists operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
--- ---
# Source: proxmox-csi-plugin/templates/controller-deployment.yaml # Source: proxmox-csi-plugin/templates/controller-deployment.yaml
apiVersion: apps/v1 apiVersion: apps/v1

View File

@ -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 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 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 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
``` ```

View File

@ -3,43 +3,57 @@ apiVersion: storage.k8s.io/v1
kind: StorageClass kind: StorageClass
metadata: metadata:
name: postgres name: postgres
provisioner: rawfile.csi.openebs.io provisioner: csi.proxmox.sinextra.dev
reclaimPolicy: Retain reclaimPolicy: Retain
volumeBindingMode: WaitForFirstConsumer volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true allowVolumeExpansion: true
parameters: parameters:
fsType: "xfs" 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 kind: StorageClass
metadata: metadata:
name: mysql name: mysql
provisioner: rawfile.csi.openebs.io provisioner: csi.proxmox.sinextra.dev
reclaimPolicy: Retain reclaimPolicy: Retain
volumeBindingMode: WaitForFirstConsumer volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true allowVolumeExpansion: true
parameters: parameters:
fsType: "xfs" 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 kind: StorageClass
metadata: metadata:
name: mongo name: mongo
provisioner: rawfile.csi.openebs.io provisioner: csi.proxmox.sinextra.dev
reclaimPolicy: Retain reclaimPolicy: Retain
volumeBindingMode: WaitForFirstConsumer volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true allowVolumeExpansion: true
parameters: parameters:
fsType: "xfs" 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 kind: StorageClass
metadata: metadata:
name: prometheus name: prometheus
provisioner: rawfile.csi.openebs.io provisioner: csi.proxmox.sinextra.dev
reclaimPolicy: Retain reclaimPolicy: Retain
volumeBindingMode: WaitForFirstConsumer volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true 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 kind: StorageClass
@ -71,9 +85,26 @@ apiVersion: storage.k8s.io/v1
kind: StorageClass kind: StorageClass
metadata: metadata:
name: rabbitmq name: rabbitmq
provisioner: rawfile.csi.openebs.io provisioner: csi.proxmox.sinextra.dev
reclaimPolicy: Retain reclaimPolicy: Retain
volumeBindingMode: WaitForFirstConsumer volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true allowVolumeExpansion: true
parameters: 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"