Before you install {VirtProductName}, you must subscribe to the {VirtProductName} catalog. Subscribing gives the {CNVNamespace} namespace access to the {VirtProductName} Operators.
To subscribe, configure Namespace, OperatorGroup, and Subscription objects by applying a single manifest to your cluster.
-
Install {product-title} {product-version} on your cluster.
-
Install the {oc-first}.
-
Log in as a user with
cluster-adminprivileges.
-
Create the required
Namespace,OperatorGroup, andSubscriptionobjects for {VirtProductName} by running the following command:$ oc apply -f <filename>.yaml
You must verify that the subscription creation was successful before you can proceed with installing {VirtProductName}.
-
Check that the
ClusterServiceVersion(CSV) object was created successfully. Run the following command and verify the output:$ oc get csv -n {CNVNamespace}If the CSV was created successfully, the output shows an entry that contains a
NAMEvalue ofkubevirt-hyperconverged-operator-*, aDISPLAYvalue of{VirtProductName}, and aPHASEvalue ofSucceeded, as shown in the following example output:Example output:
NAME DISPLAY VERSION REPLACES PHASE kubevirt-hyperconverged-operator.v{HCOVersion} {VirtProductName} {HCOVersion} kubevirt-hyperconverged-operator.v{HCOVersionPrev} Succeeded -
Check that the
HyperConvergedcustom resource (CR) has the correct version. Run the following command and verify the output:$ oc get {HCOCliKind} -n {CNVNamespace} kubevirt-hyperconverged -o json | jq .status.versionsExample output:
{ "name": "operator", "version": "{HCOVersion}" } -
Verify the
HyperConvergedCR conditions. Run the following command and check the output:$ oc get {HCOCliKind} kubevirt-hyperconverged -n {CNVNamespace} -o json | jq -r '.status.conditions[] | {type,status}'Example output:
{ "type": "ReconcileComplete", "status": "True" } { "type": "Available", "status": "True" } { "type": "Progressing", "status": "False" } { "type": "Degraded", "status": "False" } { "type": "Upgradeable", "status": "True" }