I'm using the Proxmox CSI Plugin to provision Proxmox storage backed PersistentVolumes for a Kubernetes cluster. The Proxmox CSI Plugin has the possibility to automatically create VM disks in Proxmox and mount them to the correct VM, though the volumes it creates are all named vm-9999-pvc-<UUID> which makes it difficult to distinguish which Proxmox VM disk corresponds to which Kubernetes PV.
I've been able to circumvent this issue by managing VM disks using the Mastercard/restapi provider as shown below which works adequately, though I would prefer to manage it using this provider.
I would like a new resource for managing "standalone" VM disks, e.g.
virtual_environment_disk
.Creating a new VM disk is possible by sending a POST call to the
/api2/json/nodes/{node}/storage/{storage}/content
endpoint ref https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/storage/{storage}/contentI'm using the Proxmox CSI Plugin to provision Proxmox storage backed PersistentVolumes for a Kubernetes cluster. The Proxmox CSI Plugin has the possibility to automatically create VM disks in Proxmox and mount them to the correct VM, though the volumes it creates are all named
vm-9999-pvc-<UUID>
which makes it difficult to distinguish which Proxmox VM disk corresponds to which Kubernetes PV.I've been able to circumvent this issue by managing VM disks using the Mastercard/restapi provider as shown below which works adequately, though I would prefer to manage it using this provider.
An alternative solution would be changes to Proxmox CSI Plugin to allow for named VM disks, possibly related to this issue.