Merge pull request #788 from BSWANG/patch-1

Update cni.template
This commit is contained in:
Lantao Liu 2018-05-29 14:36:28 -07:00 committed by GitHub
commit 52460ebf6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,24 +1,26 @@
{
"name": "k8s-pod-network",
"cniVersion": "0.3.1",
"plugins": [
"cniVersion": "0.3.1",
"plugins": [
{
"type": "ptp",
"mtu": 1460,
"ipam": {
"type": "host-local",
"subnet": "{{.PodCIDR}}",
"routes": [
{"dst": "0.0.0.0/0"}
]
"type": "host-local",
"subnet": "{{.PodCIDR}}",
"routes": [
{
"dst": "0.0.0.0/0"
}
]
}
},
{
"type": "portmap",
"capabilities": {
"portMappings": true
"portMappings": true
},
"noSnat": true
}
]
]
}