Deploy common-instancetypes¶
The kubevirt/common-instancetypes
provide a set of instancetypes and preferences to help create KubeVirt VirtualMachines
.
Beginning with the 1.1 release of KubeVirt, cluster wide resources can be deployed directly through KubeVirt, without another operator. This allows deployment of a set of default instancetypes and preferences along side KubeVirt.
With the v1.4.0
release of KubeVirt, common-instancetypes are now deployed by default.
FEATURE STATE:¶
Control deployment of common-instancetypes¶
To explictly enable or disable the deployment of cluster-wide common-instancetypes through the KubeVirt virt-operator
use the spec.configuration.commonInstancetypesDeployment.enable
configurable.
$ kubectl patch -n kubevirt kv/kubevirt --type merge -p '{"spec":{"configuration":{"commonInstancetypesDeployment":{"enable": false}}}}'
Deploy common-instancetypes manually¶
For customization purposes or to install namespaced resources, common-instancetypes can also be deployed by hand.
To install all resources provided by the kubevirt/common-instancetypes
project without further customizations, simply apply with kustomize
enabled (-k flag):
Alternatively, targets for each of the available custom resource types (e.g. namespaced instancetypes) are available.
For example, to deploy VirtualMachineInstancetypes
run the following command: