No description
  • Go 98.2%
  • Makefile 1%
  • Shell 0.4%
  • Dockerfile 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chris Wayne 2ddd384be7
Merge pull request #89 from cwayne18/pin-actions-to-sha
Pin GH Actions to commit sha
2026-03-27 10:23:25 -04:00
.github Pin GH Actions to commit sha 2026-03-27 09:26:45 -04:00
build test(unit_test_timing.py): parse unit test timing 2024-10-21 15:44:07 -05:00
cmd/kube-router doc(user-guide.md): update formatting 2023-10-19 16:51:21 -05:00
cni set cniVersion in 10-kuberouter.conf (#811) 2019-11-25 14:45:17 +05:30
daemonset Enhance DSR docs aroung CRI socket mounting 2024-09-12 16:56:02 -05:00
dashboard Roffe/metrics polish (#595) 2018-12-07 16:22:41 +01:00
docs doc(metrics.md): replace controller_bgp_peers -> bgp_peer_info 2026-03-07 22:45:38 -06:00
internal fact(test): reuse existing ValToPtr functions 2026-01-31 12:15:35 -06:00
pkg feat(gobgp): add kube_router_bgp_peer_info metric 2026-03-07 18:41:29 -10:00
testdata/ipset_test_1 feat(test): add testdata for verifying ipset data 2025-10-27 21:25:33 -05:00
.gitignore feat(.gitignore): update ignores to be more specific 2024-11-21 15:24:09 +01:00
.golangci.yml Use golangci-lint 2.0.2 2025-04-23 22:56:24 +02:00
.goreleaser.yml feat(goreleaser): update goreleaser version and syntax 2025-02-14 14:18:26 -06:00
.markdownlint.yaml feat(markdown): update linter from 0.39.0 -> 0.45.0 2025-09-20 16:30:54 -05:00
CONTRIBUTING.md doc(CONTRIBUTING.md): fix relative link 2024-03-17 15:08:44 -05:00
Dockerfile feat(Dockerfile): bump IPTABLES wrapper version to latest 2026-02-13 14:31:16 -08:00
go.mod build(deps): bump golang.org/x/net from 0.49.0 to 0.51.0 2026-03-02 02:04:20 +01:00
go.sum build(deps): bump golang.org/x/net from 0.49.0 to 0.51.0 2026-03-02 02:04:20 +01:00
LICENSE base line version tested with kube 1.5.6, 1.6 2017-04-17 10:33:09 +05:30
MAINTAINER.md update maintainers (#1074) 2021-04-23 08:37:56 +05:30
Makefile feat(gobgp): update v3.37.0 -> v4.2.0 2026-02-13 14:31:16 -08:00
README.md feat(markdown): update linter from 0.39.0 -> 0.45.0 2025-09-20 16:30:54 -05:00
RELEASE.md doc(RELEASE.md): update release docs 2025-02-14 14:18:26 -06:00
SECURITY.md doc(SECURITY.md): add initial policy 2025-12-15 22:56:00 -06:00
USERS.md Add Numberly to USERS.md (#867) 2020-04-06 14:08:18 +05:30

logo

Build Status Go Report Card Slack Docker Pulls kube-router License

Kube-router is a turnkey solution for Kubernetes networking with aim to provide operational simplicity and high performance.

Primary Features

kube-router does it all.

With all features enabled, kube-router is a lean yet powerful alternative to several network components used in typical Kubernetes clusters. All this from a single DaemonSet/Binary. It doesn't get any easier.

IPVS/LVS based service proxy | --run-service-proxy

kube-router uses the Linux kernel's LVS/IPVS features to implement its K8s Services Proxy. Kube-router fully leverages power of LVS/IPVS to provide a rich set of scheduling options and unique features like DSR (Direct Server Return), L3 load balancing with ECMP for deployments where high throughput, minimal latency and high-availability are crucial.

Read more about the advantages of IPVS for container load balancing:

Pod Networking | --run-router

kube-router handles Pod networking efficiently with direct routing thanks to the BGP protocol and the GoBGP Go library. It uses the native Kubernetes API to maintain distributed pod networking state. That means no dependency on a separate datastore to maintain in your cluster.

kube-router's elegant design also means there is no dependency on another CNI plugin. The official "bridge" plugin provided by the CNI project is all you need. While it is likely that you already have this plugin on your file system if you've installed Kubernetes, kube-router will install the plugins it needs for you in /opt/cni/bin if it sees you're missing them.

Read more about the advantages and potential of BGP with Kubernetes:

Network Policy Controller | --run-firewall

Enabling Kubernetes Network Policies is easy with kube-router -- just add a flag to kube-router. It uses ipsets with iptables to ensure your firewall rules have as little performance impact on your cluster as possible.

Kube-router supports the networking.k8s.io/NetworkPolicy API or network policy V1/GA semantics and also network policy beta semantics.

Read more about kube-router's approach to Kubernetes Network Policies:

Advanced BGP Capabilities

If you have other networking devices or SDN systems that talk BGP, kube-router will fit in perfectly. From a simple full node-to-node mesh to per-node peering configurations, most routing needs can be attained. The configuration is Kubernetes native (annotations) just like the rest of kube-router, so use the tools you already know! Since kube-router uses GoBGP, you have access to a modern BGP API platform as well right out of the box. Kube-router also provides a way to expose services outside the cluster by advertising ClusterIP and externalIPs to configured BGP peers. Kube-routesalso support MD5 password based authentication and uses strict export policies so you can be assured routes are advertised to the underlay only as you intended.

For more details please refer to the BGP documentation.

Standard Linux Networking

A key design tenet of Kube-router is to use standard Linux networking stack and toolset. There is no overlays or SDN pixie dust, but just plain good old networking. You can use standard Linux networking tools like iptables, ipvsadm, ipset, iproute, traceroute, tcpdump etc. to troubleshoot or observe data path. When kube-router is ran as a daemonset, the official kube-router image also ships with these tools automatically configured for your cluster.

Small Footprint

Although it does the work of several of its peers in one binary, kube-router does it all with a relatively tiny codebase, partly because IPVS is already there on your Kuberneres nodes waiting to help you do amazing things. kube-router brings that and GoBGP's modern BGP interface to you in an elegant package designed from the ground up for Kubernetes.

High Performance

A primary motivation for kube-router is performance. The combination of BGP for inter-node Pod networking and IPVS for load balanced proxy Services is a perfect recipe for high-performance cluster networking at scale. BGP ensures that the data path is dynamic and efficient, and IPVS provides in-kernel load balancing that has been thoroughly tested and optimized.

Getting Started

Project status

Kube-router is being used in several production clusters by diverse set of users ranging from financial firms, gaming companies to universities. For years we have listened to users and incorporated feedback. The core functionality is now very stable.

Contributing

We encourage all kinds of contributions, be they documentation, code, fixing typos, testsanything at all. Please read the contribution guide.

Support & Feedback

If you experience any problems please reach us on kube-router slack channel for quick help. Feel free to leave feedback or raise questions by opening an issue.

Acknowledgement

Kube-router build upon following libraries: