MCPcopy
hub / github.com/kubevirt/kubevirt

github.com/kubevirt/kubevirt @v1.8.4 sqlite

repository ↗ · DeepWiki ↗ · release v1.8.4 ↗
18,885 symbols 74,148 edges 2,195 files 5,012 documented · 27%
README

KubeVirt

Build Status Go Report Card Licensed under Apache License version 2.0 Coverage Status CII Best Practices Visit our Slack channel FOSSA Status

KubeVirt is a virtual machine management add-on for Kubernetes. The aim is to provide a common ground for virtualization solutions on top of Kubernetes.

Introduction

Virtualization extension for Kubernetes

At its core, KubeVirt extends Kubernetes by adding additional virtualization resource types (especially the VM type) through Kubernetes's Custom Resource Definitions API. By using this mechanism, the Kubernetes API can be used to manage these VM resources alongside all other resources Kubernetes provides.

The resources themselves are not enough to launch virtual machines. For this to happen the functionality and business logic needs to be added to the cluster. The functionality is not added to Kubernetes itself, but rather added to a Kubernetes cluster by running additional controllers and agents on an existing cluster.

The necessary controllers and agents are provided by KubeVirt.

As of today KubeVirt can be used to declaratively

  • Create a predefined VM
  • Schedule a VM on a Kubernetes cluster
  • Launch a VM
  • Stop a VM
  • Delete a VM

To start using KubeVirt

Try our quickstart at kubevirt.io.

See our user documentation at kubevirt.io/docs.

Once you have the basics, you can learn more about how to run KubeVirt and its newest features by taking a look at:

To start developing KubeVirt

To set up a development environment please read our Getting Started Guide. To learn how to contribute, please read our contribution guide.

You can learn more about how KubeVirt is designed (and why it is that way), and learn more about the major components by taking a look at our developer documentation:

Useful links

The KubeVirt SIG-release repo is responsible for information regarding upcoming and previous releases.

Community

If you got enough of code and want to speak to people, then you got a couple of options:

Related resources

Submitting patches

When sending patches to the project, the submitter is required to certify that they have the legal right to submit the code. This is achieved by adding a line

Signed-off-by: Real Name <email@address.com>

to the bottom of every commit message. Existence of such a line certifies that the submitter has complied with the Developer's Certificate of Origin 1.1, (as defined in the file docs/developer-certificate-of-origin).

This line can be automatically added to a commit in the correct format, by using the '-s' option to 'git commit'.

License

KubeVirt is distributed under the Apache License, Version 2.0.

This file is part of the KubeVirt project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Copyright The KubeVirt Authors.

FOSSA Status

FOSSA Status

Extension points exported contracts — how you extend this code

APIServiceInterface (Interface)
go:generate mockgen -source $GOFILE -imports "libvirt=libvirt.org/go/libvirt" -package=$GOPACKAGE -destination=generated [20 …
pkg/virt-operator/resource/generate/install/strategy.go
VolumeSnapshotInterface (Interface)
VolumeSnapshotInterface has methods to work with VolumeSnapshot resources. [8 implementers]
staging/src/kubevirt.io/client-go/externalsnapshotter/typed/volumesnapshot/v1/volumesnapshot.go
ConfigGenerator (Interface)
(no doc) [13 implementers]
pkg/network/dhcp/configurator.go
Service (Interface)
(no doc) [7 implementers]
pkg/service/service.go
NodeTopologyUpdater (Interface)
(no doc) [54 implementers]
pkg/virt-controller/watch/topology/nodetopologyupdater.go
AddressPooler (Interface)
(no doc) [8 implementers]
pkg/virt-launcher/virtwrap/device/hostdevice/hostdev.go
PodIsolationDetector (Interface)
PodIsolationDetector helps detecting cgroups, namespaces and PIDs of Pods from outside of them. Different strategies may [4 …
pkg/virt-handler/isolation/detector.go
Collector (Interface)
(no doc) [15 implementers]
pkg/monitoring/metrics/virt-handler/collector/collector.go

Core symbols most depended-on inside this repo

Errorf
called by 3134
staging/src/kubevirt.io/client-go/log/log.go
P
called by 2023
pkg/pointer/pointer.go
Get
called by 1185
pkg/checkpoint/checkpoint.go
Infof
called by 1154
staging/src/kubevirt.io/client-go/log/log.go
Create
called by 1066
pkg/os/fs/filesystem.go
VirtualMachineInstance
called by 1049
staging/src/kubevirt.io/client-go/kubecli/kubevirt.go
GetTestNamespace
called by 1010
tests/testsuite/namespace.go
DeepCopy
called by 820
pkg/virt-launcher/virtwrap/api/arch-defaulter/archdefaults.go

Shape

Method 9,220
Function 7,192
Struct 1,804
Interface 383
TypeAlias 165
FuncType 119
Class 2

Languages

Go100%
Python1%

Modules by API surface

staging/src/kubevirt.io/client-go/api/openapi_generated.go794 symbols
staging/src/kubevirt.io/api/core/v1/deepcopy_generated.go556 symbols
staging/src/kubevirt.io/client-go/kubecli/generated_mock_kubevirt.go416 symbols
pkg/handler-launcher-com/cmd/v1/cmd.pb.go415 symbols
pkg/virt-launcher/virtwrap/api/deepcopy_generated.go352 symbols
pkg/virt-handler/device-manager/deviceplugin/v1beta1/api.pb.go301 symbols
staging/src/kubevirt.io/api/core/v1/types.go249 symbols
pkg/virt-launcher/virtwrap/api/schema.go198 symbols
pkg/controller/virtinformers.go184 symbols
pkg/handler-launcher-com/cmd/v1/generated_mock_cmd.go148 symbols
staging/src/kubevirt.io/api/core/v1/schema.go145 symbols
staging/src/kubevirt.io/api/core/v1/types_swagger_generated.go143 symbols

Dependencies from manifests, versioned

cyphar.com/go-pathrsv0.2.1 · 1×
dario.cat/mergov1.0.2 · 1×
github.com/Masterminds/semver/v3v3.4.0 · 1×
github.com/VividCortex/ewmav1.2.0 · 1×
github.com/asaskevich/govalidatorv0.0.0-2023030114320 · 1×
github.com/beorn7/perksv1.0.1 · 1×
github.com/cespare/xxhash/v2v2.3.0 · 1×
github.com/containernetworking/cniv1.2.3 · 1×
github.com/containernetworking/pluginsv1.5.1 · 1×
github.com/containers/commonv0.60.4 · 1×

For agents

$ claude mcp add kubevirt \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact