.. | ||
config.yaml | ||
proxmox-csi-plugin.yml | ||
readme.md | ||
storage-class.yaml |
proxmox-csi
- create role in pve if it doesn't exist
- create user and assign permissions, preferrably at resource pool level
save the token!pveum user add ks-kubernetes-csi@pve pveum aclmod /pool/kspace_pool -user ks-kubernetes-csi@pve -role CSI pveum user token add ks-kubernetes-csi@pve cs -privsep 0
- apply
proxmox-csi-plugin.yml
andstorage-class.yaml
, delete proxmox-csi default storage classes from kube. - add the token from pve to
config.yaml
and create the secret:kubectl -n csi-proxmox create secret generic proxmox-csi-plugin --from-file=config.yaml
- label the nodes according to allocation:
kubectl --kubeconfig ~/.kube/k-space label nodes worker1.kube.k-space.ee topology.kubernetes.io/region=pve-cluster topology.kubernetes.io/zone=pve1 --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 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