Giter VIP home page Giter VIP logo

node-network-operator's Introduction

node-network-operator

Node network operator is designed to work in a Openshift 4.0+ cluster. It relies on the machine-config-operator to configure the number of VFs and MTU for worker nodes.

Quick Start

Install node-network-operator on a Openshift cluster:

 $ make deploy-setup

Node network config operator defines a new CRD NodeNetworkConfigurationPolicy. With creating a customer resource of it, you are able to configure the number of VFs on each worker node.

Here comes an example:

cat <<EOF | oc create -f -
|apiVersion: k8s.cni.cncf.io/v1alpha1
kind: NodeNetworkConfigurationPolicy
metadata:
  name: policy
  labels:
    machineconfiguration.openshift.io/role: worker
spec:
  priority: 99
  desiredState:
    interfaces:
    - name: eth0
      numVfs: 2
    - name: eth1
      mtu: 1400

In this example, we set NIC 'eth0' with 2 VFs, and NIC 'eth1' with MTU 1400. Node network config operator will create a MachineConfig customer resource, which will trigger the machine config operator to apply the configuration files of SR-IOV to each work node, then reboot the node. After rebooting, you should be able to see the VFs are provisioned.

Hacking

Running the operator

Running locally outside an OKD cluster:

 $ make run

Testing

E2E Testing

Run e2e test locally

$ make test-e2e

Unit Testing

Run unit test locally

$ make test-unit

node-network-operator's People

Stargazers

 avatar

Watchers

 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.