Closed camaeel closed 10 months ago
allowedTopologies in PV is immutable. You cannot change it, only recreate. The bast way to set region/zone is nodeSelector/affinity pod resource. Kubernetes scheduler will utilize both node capacity and CSI capacity to choose the best node.
I've introduce a basic logic to find the node, but repeate the scheduler would necessitate extensive code modifications.
Bug Report
Description
When I created a storage class with:
Proxmox CSI controller can't create a PVC. When I add topology.kubernetes.io/zone label selector it works properly. I would like to be able to set only regions supported and not zones.
Logs
Controller: [
kubectl logs -c proxmox-csi-plugin-controller proxmox-csi-plugin-controller-...
]Node: [
kubectl logs -c proxmox-csi-plugin-node proxmox-csi-plugin-node-...
]Environment
kubectl version --short
] 1.28.6kubectl get csistoragecapacities -ocustom-columns=CLASS:.storageClassName,AVAIL:.capacity,ZONE:.nodeTopology.matchLabels -A
]kubectl get CSINode <node> -oyaml
]kubectl describe node <node>
]cat /etc/os-release
]