Installing OKD Virtualization using the CLI
Install OKD 4.12 on your cluster.
Log in as a user with
cluster-admin
privileges.
Before you install OKD Virtualization, you must subscribe to the OKD Virtualization catalog. Subscribing gives the openshift-cnv
namespace access to the OKD Virtualization Operators.
To subscribe, configure Namespace
, OperatorGroup
, and Subscription
objects by applying a single manifest to your cluster.
Create a YAML file that contains the following manifest:
Create the required
Namespace
,OperatorGroup
, andSubscription
objects for OKD Virtualization by running the following command:$ oc apply -f <file name>.yaml
You can deploy the OKD Virtualization Operator by using the oc
CLI.
Prerequisites
- An active subscription to the OKD Virtualization catalog in the namespace.
Procedure
Deploy the OKD Virtualization Operator by running the following command:
$ oc apply -f <file_name>.yaml
Verification
Ensure that OKD Virtualization deployed successfully by watching the
PHASE
of the cluster service version (CSV) in theopenshift-cnv
namespace. Run the following command:The following output displays if deployment was successful:
Example output
NAME DISPLAY VERSION REPLACES PHASE
kubevirt-hyperconverged-operator.v4.12.0 OKD Virtualization 4.12.0 Succeeded
You might want to additionally configure the following components: