Update network-plugins to use portmap plugin (#1763)

Portmap allow to use hostPort with CNI plugins. Should fix #1675
This commit is contained in:
Kevin Lefevre
2017-10-16 08:11:38 +02:00
committed by Matthew Mosesohn
parent d9879d8026
commit 6ec45b10f1
7 changed files with 70 additions and 48 deletions

View File

@@ -0,0 +1,26 @@
{
"name": "cni0",
"cniVersion":"0.3.1",
"plugins":[
{
"type": "flannel",
"delegate": {
"type": "calico",
"etcd_endpoints": "{{ etcd_access_addresses }}",
"log_level": "info",
"policy": {
"type": "k8s"
},
"kubernetes": {
"kubeconfig": "{{ kube_config_dir }}/node-kubeconfig.yaml"
}
}
},
{
"type":"portmap",
"capabilities":{
"portMappings":true
}
}
]
}