2020-03-04 18:11:47 +08:00
|
|
|
{
|
2020-03-17 17:40:21 +08:00
|
|
|
"cniVersion":"0.3.0",
|
|
|
|
"name":"kubernetes",
|
|
|
|
"plugins":[
|
|
|
|
{
|
|
|
|
"name":"kubernetes",
|
|
|
|
"type":"bridge",
|
|
|
|
"bridge":"kube-bridge",
|
|
|
|
"isDefaultGateway":true,
|
2020-03-04 18:11:47 +08:00
|
|
|
{% if kube_router_support_hairpin_mode %}
|
2020-03-17 17:40:21 +08:00
|
|
|
"hairpinMode":true,
|
2020-03-04 18:11:47 +08:00
|
|
|
{% endif %}
|
2020-03-17 17:40:21 +08:00
|
|
|
"ipam":{
|
|
|
|
{% if host_subnet is defined %}
|
|
|
|
"subnet": "{{ host_subnet }}",
|
|
|
|
{% endif %}
|
|
|
|
"type":"host-local"
|
|
|
|
}
|
2020-06-11 01:08:52 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type":"portmap",
|
|
|
|
"capabilities":{
|
|
|
|
"portMappings":true
|
|
|
|
}
|
2020-03-17 17:40:21 +08:00
|
|
|
}
|
|
|
|
]
|
2020-03-04 18:11:47 +08:00
|
|
|
}
|