Nathan Gieseker 57b42a7b99 Windows: Adds HCS Calls and Bug Fixes
Move the windows plugin to use the Host Compute (v2) APIs, as well
as clean-up the code. Allows win-bridge to use either the old API or Host Compute (v2) api
depending on a conf parameter. Fixes a leaked endpoint issue on windows for the v1 flow, and
removes the hns/pkg from the linux test run.
2019-02-27 08:49:34 -08:00
..
2018-09-21 00:34:07 +08:00
2018-09-21 00:34:07 +08:00

win-overlay plugin

Overview

With win-overlay plugin, all containers (on the same host) are plugged into an Overlay network based on VXLAN encapsulation.

Example configuration

{
	"name": "mynet",
	"type": "win-overlay",
	"ipMasq": true,
	"endpointMacPrefix": "0E-2A",
	"ipam": {
		"type": "host-local",
		"subnet": "10.10.0.0/16"
	}
}

Network configuration reference

  • name (string, required): the name of the network.
  • type (string, required): "win-overlay".
  • ipMasq (bool, optional): the inverse of $FLANNEL_IPMASQ, setup NAT for the hnsNetwork subnet.
  • endpointMacPrefix (string, optional): set to the MAC prefix configured for Flannel
  • ipam (dictionary, required): IPAM configuration to be used for this network.