Files
dsk-iac/kubespray/roles/network_plugin/kube-router/templates/cni-conf.json.j2
havelight-ee 4c32a7239d update
2023-05-30 14:44:26 +09:00

28 lines
557 B
Django/Jinja

{
"cniVersion":"0.3.0",
"name":"kubernetes",
"plugins":[
{
"name":"kubernetes",
"type":"bridge",
"bridge":"kube-bridge",
"isDefaultGateway":true,
{% if kube_router_support_hairpin_mode %}
"hairpinMode":true,
{% endif %}
"ipam":{
{% if host_subnet is defined %}
"subnet": "{{ host_subnet }}",
{% endif %}
"type":"host-local"
}
},
{
"type":"portmap",
"capabilities":{
"portMappings":true
}
}
]
}