Skip to content

Commit ac8934b

Browse files
authored
Merge pull request #43356 from sabrinajess/CNV16875
CNV-16875: Update code sample on Configuring custom virtual machines
2 parents 7bd6054 + 441122e commit ac8934b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

modules/virt-configuring-vm-live-migration-cli.adoc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ configured by default.
1212

1313
.Procedure
1414

15-
. Add the `evictionStrategy: LiveMigrate` option to the `spec` section in the
15+
. Add the `evictionStrategy: LiveMigrate` option to the `spec.template.spec` section in the
1616
virtual machine configuration file. This example uses `oc edit` to update
1717
the relevant snippet of the `VirtualMachine` configuration file:
1818
+
@@ -30,11 +30,9 @@ kind: VirtualMachine
3030
metadata:
3131
name: custom-vm
3232
spec:
33-
terminationGracePeriodSeconds: 180
34-
evictionStrategy: LiveMigrate
35-
domain:
36-
resources:
37-
requests:
33+
template:
34+
spec:
35+
evictionStrategy: LiveMigrate
3836
...
3937
----
4038

0 commit comments

Comments
 (0)