k3s has removed some standard plugins, which we need. So fork and add it back.
Go to file
Casey Callendrello 5576f3120e portmap: support hairpin, improve performance
This change improves the performance of the portmap plugin and fixes
hairpin, when a container is mapped back to itself.

Performance is improved by using a multiport test to reduce rule
traversal, and by using a masquerade mark.

Hairpin is fixed by enabling masquerading for hairpin traffic.
2017-11-10 16:56:52 +01:00
Godeps Update vendor to v0.6.0-rc1 2017-07-05 11:46:00 -07:00
pkg testing: move echosvr into testutils 2017-09-06 19:10:48 -07:00
plugins portmap: support hairpin, improve performance 2017-11-10 16:56:52 +01:00
scripts Release: clean the builddir when building 2017-08-14 14:42:50 +02:00
vendor Update vendor to v0.6.0-rc1 2017-07-05 11:46:00 -07:00
.gitignore add Vagrantfile to support cross-platform development 2017-06-06 20:13:31 -07:00
.travis.yml Merge pull request #65 from rosenhouse/golang-to-1.9 2017-10-18 15:36:34 -07:00
build.sh If we're on OS X then have Go cross compile for us 2017-07-20 12:03:30 -04:00
CONTRIBUTING.md add Vagrantfile to support cross-platform development 2017-06-06 20:13:31 -07:00
LICENSE Initial commit 2017-03-10 16:46:52 +01:00
README.md README.md: Add travis badge 2017-07-05 11:49:07 -07:00
RELEASING.md Add release process 2017-07-11 13:57:49 -07:00
test.sh travis: run with ginkgo -p instead of go test 2017-08-30 20:22:12 -07:00
Vagrantfile Vagrantfile: update to golang 1.9.1 2017-10-11 21:19:16 +02:00

Build Status

plugins

Some CNI network plugins, maintained by the containernetworking team. For more information, see the individual READMEs.

Plugins supplied:

Main: interface-creating

  • bridge: Creates a bridge, adds the host and the container to it.
  • ipvlan: Adds an ipvlan interface in the container
  • loopback: Creates a loopback interface
  • macvlan: Creates a new MAC address, forwards all traffic to that to the container
  • ptp: Creates a veth pair.
  • vlan: Allocates a vlan device.

IPAM: IP address allocation

  • dhcp: Runs a daemon on the host to make DHCP requests on behalf of the container
  • host-local: maintains a local database of allocated IPs

Meta: other plugins

  • flannel: generates an interface corresponding to a flannel config file
  • tuning: Tweaks sysctl parameters of an existing interface
  • portmap: An iptables-based portmapping plugin. Maps ports from the host's address space to the container.

Sample

The sample plugin provides an example for building your own plugin.