Giter Club home page Giter Club logo

vf-operator's Introduction

vf-operator

โš  Experimental. Please take note that this is a pre-release version.

Build check Go Reference

VF operator for CNI only environments, like podman. If you are running with k8s, there are a number of options to configure and associate VFs to your container workloads. For e.g. https://github.com/k8snetworkplumbingwg/sriov-network-operator

Most of the configuration fields for the resources are inspired by sriov-network-operator

Features

  • Discover SR-IOV capable NICs based on the following selectors
    • Vendor names
    • PCI address list
    • Driver names
    • PF netdevice names
  • Initialize SR-IOV capable NICs based on resource configuration
    • Set MTU
    • Set number of VFs
    • Create CDI spec for vhost-net and tun devices if needVhostNet is true
  • Create network conflist for podman CNI backend based on network attachment configuration
    • For network attachments with resourceName specified, the resources discovered in above steps will be used to select a VF
    • Selected VF device ID is inserted into the input network attachment configuration

Build

Run the following commands to build and install

make -j$(nproc)
DESTDIR="/path/to/install" PREFIX="/usr/local" make install 

Complete list of make targets

make help

 Make vf-operator, a network service that configures and discovers SR-IOV devices

 Targets;
  help                  This printout
  all (default)         Build gRPC stubs and the executable
  clean                 Remove built files
  dep                   Installs pre-requisites
  stubs                 Generates gRPC stubs and OpenAPIv2 specs
  test
  install               Installs the executable
  swagger_install       Installs static swagger UI

Binary:
  bin/vf-operator

Test

Start the VF operator and test the exposed APIs

vf-operator

Complete list of arguments

vf-operator --help

vf-operator discovers and configures SR-IOV capable NICs based on configured selectors and
creates network conflist for container runtimes to attach CNI networks to containers
Options;
  -config string
        Path to config file (default "/etc/cni/vf-operator/config.json")
  -gwPort int
        API port (tcp:port) (default 15001)
  -port int
        gRPC port (tcp:port) (default 5001)

Basic design and API references

Design

Contributing

How to contribute

vf-operator's People

Watchers

 avatar

vf-operator's Issues

Separate netdevice provider from resource configuration server

Currently netdevice provider is embedded in the resource configuration server, this makes it hard to run vf-operator to completion instead of a daemon.
Consider running the provider as a separate go routine that the server can talk to if running as a daemon

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.