Hi,
I'm starting to play with creating VMs in K8s - which is really cool and easy to understand, however, one thing elude my mind :)
I've been trying to create a VM that has a dataVolumeTemplates to import the OS, and that works, however, I also want this VM to automatically have a couple of PVCs created and attached to the VM as it is created.
I've tried playing with dataVolume, but these expect the PVC to already exists.
In the case of the rootdisk it is created by the sc in the dataVolumeTemplates.spec.storage section, however for the two "data" disks (they will a DB), I need them to be created automatically and I can't seem to find the way to supply a storage class and also accessModes so I can live migrate this machine.
Any example will be greatly appreciated.
Thx.
Sagy Volkov