kubevirt-addon-manager

command module
v0.0.0-...-1973e1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

README

kubevirt-addon-manager

Open Cluster Management add-on that deploys KubeVirt HCO onto managed OpenShift clusters using OLM.

License

This project is licensed under the Apache License 2.0. A copy of the license can be found in LICENSE.

Installing

If you would like to deploy the kubevirt-addon-manager to a cluster, execute:

make deploy

Usage

With Label

On a hub cluster with the kubevirt-addon-manager running, add the label addons.open-cluster-management.io/kubevirt with value true to the ManagedCluster object of the managed OpenShift cluster you want to deploy KubeVirt HCO onto.

Sample ManagedCluster (replace managed_cluster_name with the appropriate managed cluster name):

apiVersion: cluster.open-cluster-management.io/v1
kind: ManagedCluster
metadata:
  name: <managed_cluster_name>
  labels:
    addons.open-cluster-management.io/kubevirt: "true"
spec: ...
Manually creating the ManagedClusterAddOn

On a hub cluster with the kubevirt-addon-manager running, create a ManagedClusterAddOn object in the namespace of the managed OpenShift cluster you want to deploy KubeVirt HCO onto.

Sample ManagedClusterAddOn (replace managed_cluster_namespace with the appropriate managed cluster name):

apiVersion: addon.open-cluster-management.io/v1alpha1
kind: ManagedClusterAddOn
metadata:
  name: kubevirt
  namespace: <managed_cluster_namespace>
spec: {}

Development

Running the controller locally pointing to a remote cluster

If you would like to run the kubevirt-addon-manager controller outside a cluster, execute:

make run

This will use the kubeconfig found in environment variable KUBECONFIG or default to ~/.kube/config.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL