Skip to content

Commit 0997737

Browse files
committed
Further corrections to migration policy setup
Kudos to Germano Veit Michel for the continued support
1 parent 541040d commit 0997737

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

modules/virt-configuring-a-live-migration-policy.adoc

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,18 @@ metadata:
4343
labels:
4444
app: my-app
4545
environment: production
46-
*spec:*
47-
running: true
48-
*template:*
49-
*metadata:*
50-
*labels:*
51-
*kubevirt.io/domain: <vm-name>*
52-
*kubevirt.io/size: large*
53-
*kubevirt.io/environment: production*
54-
[...]
46+
spec:
47+
template:
48+
metadata:
49+
labels:
50+
kubevirt.io/domain: <vm-name>
51+
kubevirt.io/size: large
52+
kubevirt.io/environment: production
5553
----
5654

5755
.. Save and exit the configuration.
5856

59-
. Configure a `MigrationPolicy` object with the corresponding labels, as in the following example:
57+
. Configure a `MigrationPolicy` object with the corresponding labels. The following example configures a policy that applies to all VMs that are labeled as `production`:
6058
+
6159
[source,yaml]
6260
----
@@ -70,8 +68,6 @@ spec:
7068
hpc-workloads: "True"
7169
xyz-workloads-type: ""
7270
virtualMachineInstanceSelector: <2>
73-
"kubevirt.io/domain": "<vm-name>",
74-
"kubevirt.io/size": "large",
7571
"kubevirt.io/environment": "production"
7672
----
7773
<1> Specify project labels.

0 commit comments

Comments
 (0)