1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/virt-deploying-operator-cli.adoc
2025-11-18 16:29:25 +01:00

60 lines
1.7 KiB
Plaintext

// Module included in the following assemblies:
//
// * virt/install/installing-virt.adoc
:_mod-docs-content-type: PROCEDURE
[id="virt-deploying-operator-cli_{context}"]
= Deploying the {VirtProductName} Operator by using the CLI
[role="_abstract"]
You can deploy the {VirtProductName} Operator by using the `oc` CLI.
.Prerequisites
* Install the {oc-first}.
* Subscribe to the {VirtProductName} catalog in the `{CNVNamespace}` namespace.
* Log in as a user with `cluster-admin` privileges.
// required for ROSA/OSD
ifdef::openshift-rosa,openshift-dedicated,openshift-rosa-hcp[]
* Create a machine pool based on a bare metal compute node instance type.
endif::openshift-rosa,openshift-dedicated,openshift-rosa-hcp[]
.Procedure
. Create a YAML file that contains the following manifest:
+
[source,yaml,subs="attributes+"]
----
apiVersion: hco.kubevirt.io/v1beta1
kind: HyperConverged
metadata:
name: kubevirt-hyperconverged
namespace: {CNVNamespace}
spec:
----
. Deploy the {VirtProductName} Operator by running the following command:
+
[source,terminal]
----
$ oc apply -f <file_name>.yaml
----
.Verification
* Ensure that {VirtProductName} deployed successfully by watching the `PHASE` of the cluster service version (CSV) in the `{CNVNamespace}` namespace. Run the following command:
+
[source,terminal,subs="attributes+"]
----
$ watch oc get csv -n {CNVNamespace}
----
+
The following output displays if deployment was successful:
+
[source,terminal,subs="attributes+"]
----
NAME DISPLAY VERSION REPLACES PHASE
kubevirt-hyperconverged-operator.v{HCOVersion} {VirtProductName} {HCOVersion} Succeeded
----