mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * virt/live_migration/virt-enabling-cclm-for-vms.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="virt-setting-openshiftv-lm-feature-gates_{context}"]
|
|
= Setting a live migration feature gate for each cluster in {VirtProductName}
|
|
|
|
[role="_abstract"]
|
|
To enable cross-cluster live migration, you must set a feature gate for each of the two clusters in {VirtProductName}.
|
|
|
|
.Prerequisites
|
|
|
|
* You have installed the {oc-first}.
|
|
|
|
* You must have cluster admin privileges.
|
|
|
|
* The `virt-synchronization-controller` pods must be running.
|
|
|
|
.Procedure
|
|
|
|
* Set the feature gate by running the following command for each cluster:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc patch hyperconverged kubevirt-hyperconverged -n openshift-cnv --type json -p '[{"op":"replace", "path": "/spec/featureGates/decentralizedLiveMigration", "value": true}]'
|
|
----
|
|
|
|
.Verification
|
|
|
|
* To verify that the feature gate enablement is successful for each cluster, run the following command in the {VirtProductName} namespace to locate the synchronization pods:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get -n {CNVNamespace} pod | grep virt-synchronization
|
|
----
|
|
+
|
|
Example output:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
virt-synchronization-controller-898789f8fc-nsbsm 1/1 Running 0 5d1h
|
|
virt-synchronization-controller-898789f8fc-vmmfj 1/1 Running 0 5d1h
|
|
----
|