mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
30 lines
1.3 KiB
Plaintext
30 lines
1.3 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * virt/creating_vm/virt-creating-vms-from-instance-types.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="inferfromvolume-labels_{context}"]
|
|
= Setting the inferFromVolume labels
|
|
|
|
[role="_abstract"]
|
|
Use the following labels on your PVC, data source, or data volume to instruct the inference mechanism which instance type, preference, or both to use when trying to boot from a volume.
|
|
|
|
* A cluster-wide instance type: `instancetype.kubevirt.io/default-instancetype` label.
|
|
* A namespaced instance type: `instancetype.kubevirt.io/default-instancetype-kind` label. Defaults to the `VirtualMachineClusterInstancetype` label if left empty.
|
|
* A cluster-wide preference: `instancetype.kubevirt.io/default-preference` label.
|
|
* A namespaced preference: `instancetype.kubevirt.io/default-preference-kind` label. Defaults to `VirtualMachineClusterPreference` label, if left empty.
|
|
|
|
.Prerequisites
|
|
|
|
* You must have an instance type, preference, or both on the cluster.
|
|
* You have installed the {oc-first}.
|
|
|
|
.Procedure
|
|
|
|
* To apply a label to a data source, use `oc label`. The following command applies a label that points to a cluster-wide instance type:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc label DataSource foo instancetype.kubevirt.io/default-instancetype=<my_instancetype>
|
|
----
|