mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * virt/install/installing-virt-cli.adoc
|
|
|
|
[id="virt-deploying-operator-cli_{context}"]
|
|
= Deploying the {VirtProductName} Operator by using the CLI
|
|
|
|
You can deploy the {VirtProductName} Operator by using the `oc` CLI.
|
|
|
|
.Prerequisites
|
|
|
|
* An active subscription to the {VirtProductName} catalog in the `openshift-cnv` namespace.
|
|
|
|
.Procedure
|
|
|
|
. Create a YAML file that contains the following manifest:
|
|
+
|
|
[source,yaml]
|
|
----
|
|
apiVersion: hco.kubevirt.io/v1beta1
|
|
kind: HyperConverged
|
|
metadata:
|
|
name: kubevirt-hyperconverged
|
|
namespace: openshift-cnv
|
|
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 `openshift-cnv` namespace. Run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ watch oc get csv -n openshift-cnv
|
|
----
|
|
+
|
|
The following output displays if deployment was successful:
|
|
+
|
|
.Example output
|
|
[source,terminal,subs="attributes+"]
|
|
----
|
|
NAME DISPLAY VERSION REPLACES PHASE
|
|
kubevirt-hyperconverged-operator.v{HCOVersion} {VirtProductName} {HCOVersion} Succeeded
|
|
----
|