Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
H

hyperconverged-cluster-operator

> 云原生
Open source

Operator pattern for managing multi-operator products

186 stars0 likes0 views
WebsiteGitHub

About

Operator pattern for managing multi-operator products

Hyperconverged Cluster Operator

A unified operator deploying and controlling KubeVirt and several adjacent operators:

  • Containerized Data Importer
  • Scheduling, Scale and Performance
  • Cluster Network Addons
  • Node Maintenance

This operator is typically installed from the Operator Lifecycle Manager (OLM), and creates operator CustomResources (CRs) for its underlying operators as can be seen in the diagram below. Use it to obtain an opinionated deployment of KubeVirt and its helper operators.

In the HCO components doc you can get an up-to-date overview of the involved components.

Installing HCO using kustomize (Openshift OLM Only)

To install the default community HyperConverged Cluster Operator, along with its underlying components, run:

bash
$ curl -L https://api.github.com/repos/kubevirt/hyperconverged-cluster-operator/tarball/main | \
tar --strip-components=1 -xvzf - kubevirt-hyperconverged-cluster-operator-*/deploy/kustomize

$ ./deploy/kustomize/deploy_kustomize.sh

The deployment is completed when HCO custom resource reports its condition as Available.

For more explanation and advanced options for HCO deployment using kustomize, refer to kustomize deployment documentation.

Building Custom Bundle and Index Image

As prerequisites, OLM is required. If you wish to use cert-manager for certificates, the script in hack/deploy-cert-manager.sh might be helpful.

To build a custom bundle and index image, with opm installed run:

…

This will:

  1. Generate ClusterServiceVersion (CSV) and other manifests with your custom operator images
  2. Build and push a bundle image containing the manifests
  3. Build and push an index image referencing the bundle

You can then use the index image to deploy HCO via OLM by creating a CatalogSource pointing to your custom index image. Alternatively, you can install the operator via operator-sdk like so:

bash
operator-sdk run bundle -n  --timeout=10m 

Installing Unreleased Bundle Using A Custom Catalog Source

Hyperconverged Cluster Operator is publishing the latest bundle to quay.io/kubevirt before publishing tagged, stable releases to OperatorHub.io. The latest bundle is quay.io/kubevirt/hyperconverged-cluster-bundle:1.20.0-unstable. It is built and pushed on every merge to main branch, and contains the most up-to-date manifests, which are pointing to the most recent application images: hyperconverged-cluster-operator and hyperconverged-cluster-webhook, which are built together with the bundle from the current code at the main branch. The unreleased bundle can be consumed on a cluster by creating a CatalogSource pointing to the index image that contains that bundle: quay.io/kubevirt/hyperconverged-cluster-index:1.20.0-unstable.

Make the bundle available in the cluster's packagemanifest by adding the following CatalogSource:

…

Create the namespace for the HCO.

bash
$ kubectl create ns kubevirt-hyperconverged

For the next set of commands, we will use the operator-sdk CLI tool. Below commands will create a bundle image, push this image, and finally use that bundle image to install the HyperConverged cluster Operator on the OLM-enabled cluster.

…

Create an HCO CustomResource, which creates the KubeVirt CR, launching KubeVirt, CDI (Containerized Data Importer), Network-addons, VM import, TTO (Tekton Tasks Operator) and SSP (Scheduling, Scale and Performance) Operator.

bash
$ kubectl create -f deploy/hco.cr.yaml -n kubevirt-hyperconverged

Create a Cluster & Launch the HCO

  1. Choose the provider
bash
#For k8s cluster:
$ export KUBEVIRT_PROVIDER="k8s-1.36"
bash
#For okd cluster:
$ export KUBEVIRT_PROVIDER="okd-4.1"
  1. Navigate to the project's directory
bash
$ cd /hyperconverged-cluster-operator
  1. Remove an old cluster
bash
$ make cluster-down
  1. Create a new cluster
bash
$ make cluster-up
  1. Clean previous HCO deployment and re-deploy HCO
    (When making a change, execute only this command - no need to repeat steps 1-3)
bash
$ make cluster-sync

Command-Line Tool

Use ./cluster/kubectl.sh as the command-line tool.

For example:

bash
$ ./cluster/kubectl.sh get pods --all-namespaces

Deploying HCO on top of external provider

In order to use HCO on top of external provider, i.e CRC, use:

bash
export KUBEVIRT_PROVIDER=external
export IMAGE_REGISTRY=
export REGISTRY_NAMESPACE=
make cluster-sync

oc binary should exist, and the cluster should be reachable via oc commands.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gohcohyperconvergedkuberneteskubernetes-operator

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category云原生
PricingOpen source

> Related tools

K
Kubernetes
容器编排事实标准
H
Helm
Kubernetes 包管理器
S
seaweedfs
SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables,