Coder Social home page Coder Social logo

shaneutt / tc-nodeport Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ebpf-networking/tc-nodeport

0.0 1.0 0.0 2.62 MB

POC of K8s Nodeport service using BPF

License: BSD 3-Clause "New" or "Revised" License

Shell 0.01% C 99.73% Lua 0.06% Makefile 0.07% CMake 0.14%

tc-nodeport's Introduction

Nodeport service load-balancing demo using eBpf

tc

tc eBpf demo of Nodeport (like) N-S load balancing and SNAT/ DNAT using recently added kfuncs to support connection tracking and NAT using eBpf programs.

Notes:

  • The design is based on Approach A2 as documented here.
  • The current version is an initial Proof of Concept/ demo currently meant to validate Approach A2 and the use of the newly added kfuncs for managing kernel connection tracking (conntrack) tables.
  • This requires a system built with a custom kernel currently (it has been tested using a kernel from bpf-next/ 6.0.0-rc3)
  • To build, first recursively load all the sub-modules at the top of the repo (git submodule update --init --recursive), then 'make tc' under src

Executing the demo

For the initial demo, the eBpf program is invoked from a CLI command and not via a Kubernetes controller for services (this is to be addressed in a following rev). To run the demo, create a Kubernetes deployment and provide the NodePort and backends via the CLI invocation on the Kubernetes worker nodes. For example: tc eth0 <nodeport> <backend_ip_1> <backend_ip_2> <targetPort>. (For example tc eth0 31000 10.240.1.2 10.240.1.3 80).

Additional details to be added with future updates ...

tc-nodeport's People

Contributors

anakryiko avatar andreimatei avatar bhaskaranvinithatr avatar chantra avatar chenhengqi avatar d-e-s-o avatar danobi avatar dmitris avatar jackyyin avatar jvijtiuk avatar kckeiks avatar leodido avatar mauriciovasquezbernal avatar mkulke avatar nurdann avatar rogercoll avatar srampal avatar tallossos avatar tklauser avatar vesnica avatar waruqi avatar woodpenker 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.