5a311236c4
... to have working `hostPort` for containers. See: https://www.kube-router.io/docs/user-guide/#hostport-support
27 lines
557 B
Django/Jinja
27 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
|
|
}
|
|
}
|
|
]
|
|
}
|