Hello,
I am running a couple 20+ node cluster today and we are deploying VMs using terraform (bgp/proxmox)
Since as far as we know in the API you have to specify which one of the nodes you want to deploy the VM to we have created a javascript in between Proxmox and terraform that translates node_name = any -> Node with least used RAM
So our current flow is
Terraform -> NodeJS App -> Looks for the node with the least used ram (We have a lot of other checks here also but that is the basics) -> Deploys on NodeX
Does anyone know if there is a better way to do this where you don't have to hardcode the Node_Name on VMs?
Is there plans for something similar in Proxmox future?
Are we missing something everyone else is doing?
I am running a couple 20+ node cluster today and we are deploying VMs using terraform (bgp/proxmox)
Since as far as we know in the API you have to specify which one of the nodes you want to deploy the VM to we have created a javascript in between Proxmox and terraform that translates node_name = any -> Node with least used RAM
So our current flow is
Terraform -> NodeJS App -> Looks for the node with the least used ram (We have a lot of other checks here also but that is the basics) -> Deploys on NodeX
Does anyone know if there is a better way to do this where you don't have to hardcode the Node_Name on VMs?
Is there plans for something similar in Proxmox future?
Are we missing something everyone else is doing?