kubernetes-sigs / cluster-api-provider-kubevirt

Cluster API Provider for KubeVirt
Apache License 2.0
110 stars 63 forks source link

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

Closed HenryGuo1019 closed 1 month ago

HenryGuo1019 commented 5 months ago

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?

agradouski commented 4 months ago

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?

davidvossel commented 4 months ago

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