Skip to content

Instantly share code, notes, and snippets.

@mcastelino
Created April 13, 2017 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcastelino/f03c2594930303a2f15b8e7559b54977 to your computer and use it in GitHub Desktop.
Save mcastelino/f03c2594930303a2f15b8e7559b54977 to your computer and use it in GitHub Desktop.
Plugin Chaining - veth-tap
{
"cniVersion": "0.3.0",
"name": "mynet",
"plugins": [
{
"type": "bridge",
"bridge": "cni0"
},
{
"type": "veth",
"bridge": "cni0",
"isGateway": true,
"ipMasq": true,
"ipam": {
"type": "host-local",
"subnet": "10.22.0.0/16",
"routes": [
{ "dst": "0.0.0.0/0" }
]
},
"runtimeConfig": {
"configureVM": false
}
},
{
"type": "tap",
"bridge": "cni0",
"isGateway": true,
"ipMasq": true,
"ipam": {
"type": "host-local",
"subnet": "10.22.0.0/16",
"routes": [
{ "dst": "0.0.0.0/0" }
]
},
"runtimeConfig": {
"configureVM": false
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment