/forklift-operator

Virtualization Migration Operator

Primary LanguageJinjaApache License 2.0Apache-2.0

Forklift Operator

Operator Repository on Quay License contributions welcome

Forklift Operator installs a suite of migration tools that facilitate the migration of VM workloads to OpenShift Virtualization or KubeVirt.

Prerequisites

Compatibility

OpenShift Virtualization/KubeVirt is required and must be installed prior attempting to deploy Forklift, see the table below for supported configurations:

Forklift release OpenShift Virtualization/KubeVirt VMware oVirt
v2.2 v4.9 6.5+ 4.4.9+
v2.3 v4.10+ 6.5+ 4.4.9+

Note: Please keep in mind Forklift will not deploy in unsupported configurations.

Component Overview

The operator will install all the necessary components which Forklift needs to operate. The projects and a description of each are detailed below:

Development

See development.md for details in how to contribute to Forklift operator.

Forklift Operator Installation on OKD/OpenShift

The method used for these instructions relies on OKD/OCP Web Console, it is also possible to automate the deployment in OpenShift using manifests if needed, please check the k8s deployment manifest for details.

Installing released versions

Released (or public betas) of Forklift are installable via community operators which appear in OCP and OKD marketplace.

  1. Visit the OpenShift Web Console.
  2. Navigate to Operators => OperatorHub.
  3. Search for Forklift Operator.
  4. Install the desired Forklift Operator version.

Installing latest (or other unreleased versions)

Installing latest is almost an identical procedure to released versions but requires creating a new catalog source.

  1. oc create -f forklift-operator-catalog.yaml
  2. Follow the same procedure as released versions until the Search for Forklift Operator step.
  3. There should be two Forklift Operator available for installation now.
  4. Select the Forklift Operator without the community tag.
  5. Proceed to install latest using the development channel in the subscription step.

Note: Installing latest may also include OLM channels for other released versions.

ForkliftController CR Creation

Once you have successfully installed the operator, proceed to deploy components by creating the ForkliftController CR.

  1. Visit OpenShift Web Console, navigate to Operators => Installed Operators.
  2. Select Forklift Operator.
  3. Locate ForkliftController on the top menu and click on it.
  4. Adjust settings if desired and click Create instance.

Once the CR is created, the operator will deploy the controller, UI and configure the rest of required components.

Installing on Kubernetes (or Minikube)

See k8s.md for details.

Customize Settings

Custom deployment settings can be applied by editing the ForkliftController CR.

oc edit forkliftcontroller -n konveyor-forklift

Removing Forklift Operator

Use the Forklift cleanup script, this is the recommended method to delete operator, CRDs and all related objects. It supports OpenShift and Kubernetes environments.

forklift-cleanup.sh -o

Forklift Documentation

See the Forklift Documentation for detailed installation instructions as well as how to use Forklift.