6ec45b10f1
Portmap allow to use hostPort with CNI plugins. Should fix #1675
26 lines
495 B
Django/Jinja
26 lines
495 B
Django/Jinja
{
|
|
"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
|
|
}
|
|
}
|
|
]
|
|
}
|