Giter Club home page Giter Club logo

kvm-info-nfd-plugin's Introduction

kvm-info-nfd-plugin

kvm-info-nfd-plugin is an addon toolset for the kubernetes node feature discovery. It plugs in the user-specific features support, and add labels to the hosts to report if they support KVM HyperV enlightenments.

This is useful for kubevirt, which can use these labels to safely and efficiently schedule VMs on hyoerv-capable hosts.

scope and purpose

Checking KVM support in kernels is hard. In general, things are supposed to just work, but bugs, backports and various issues may result in some kernel versions not work properly.

This project don't aim to perfectly represent the state of the Hyper-V support. That would be impractical. Instead, this project aim to provide a corse-grained labelling to whitelist or blacklist some kernel versions.

We believe this is a good compromise between maintenability and user experience.

The toolset features few NFD-compatible plugins:

  • kvm-caps-info-nfd-plugin
  • kvm-version-info-nfd-plugin

You can install all the plugins together, and they are supposed to coexist without issue (otherwise please report a bug), but you most likely want to install just either one.

Unless you know what are you doing, we recommend to install and run only kvm-caps-info-nfd-plugin, which add the labels that kubevirt >= 0.16.0 expects when it is configured to run with strict HyperV check. Please see the kubevirt documentation.

kvm-caps-info-nfd-plugin

This plugin exposes per-feature, granular labels, for each feature exposed by libvirt >= 5.1 Example output

/kvm-info-cap-hyperv-base
/kvm-info-cap-hyperv-time
/kvm-info-cap-hyperv-vpindex
/kvm-info-cap-hyperv-tlbflush
/kvm-info-cap-hyperv-ipi
/kvm-info-cap-hyperv-synic
/kvm-info-cap-hyperv-synic2
/kvm-info-cap-hyperv-frequencies
/kvm-info-cap-hyperv-reset
/kvm-info-cap-hyperv-runtime
/kvm-info-cap-hyperv-synictimer
/kvm-info-cap-hyperv-reenlightenment

Using this plugin, KubeVirt >= 0.16.0 can do informed scheduled decisions on a per-feature basis.

kvm-version-info-nfd-plugin

QEMU exposes quite a lot of hyperv enlightenments. We choose to not expose all of them, to avoid a combinatorial explosion in the check matrix. Thus, kvm-info-nfd-plugin just exports two set of labels:

  • hyperv: signals that the host is whitelisted, thus has no known gotchas, thus any enlightenment can be safely turned on
  • hyperv-lev2: same as above but for L2 (nested hyperv) enlightenments. These are separated because enabling L2 enlightenments without running nested virtualization may cause a small performance loss.

tests

To run the testsuite:

make tests

TODO

  • add more functional tests

kvm-info-nfd-plugin's People

Contributors

ffromani avatar ksimon1 avatar omeryahud avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.