百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
H

hyperconverged-cluster-operator

> 云原生
开源

用于管理多运营商产品的运营商模式

186 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

用于管理多运营商产品的运营商模式

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Gohcohyperconvergedkuberneteskubernetes-operator

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类云原生
定价开源

> 相关工具

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