cluster-api-provider-kubevirt icon indicating copy to clipboard operation
cluster-api-provider-kubevirt copied to clipboard

Is it possible to change the config when cluster is running , like cpu\mem?

Open HenryGuo1019 opened this issue 10 months ago • 2 comments

For now , i can't change the kubevirtMachineTemplate when the cluster is running and i also try to change the kubevirtmachine , it return configured but did't change the VM and restart it , is there any way that can change it?

HenryGuo1019 avatar Apr 25 '24 08:04 HenryGuo1019

this is not yet supported. please feel free to open a PR for this change.

@davidvossel -- do you happen to know if there's a need or a plan to support this?

agradouski avatar May 14 '24 15:05 agradouski

kubevirtmachine , it return configured but did't change the VM and restart it , is there any way that can change it?

For us, machineTemplates are meant to be immutable.

The procedure for changing the template would be to

  1. create a new template with the desired changes
  2. update the MachineSet or MachineDeployment to point to the new template
  3. Those controllers will then rollout the new changes.

more info can be found here, https://release-0-3.cluster-api.sigs.k8s.io/tasks/change-machine-template

davidvossel avatar May 14 '24 18:05 davidvossel