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