From 5a311236c402dbe0a2b8ed9fbfb5f2eb5472b77b Mon Sep 17 00:00:00 2001 From: Alexander Evseev <11456446+EBCEEB@users.noreply.github.com> Date: Wed, 10 Jun 2020 20:08:52 +0300 Subject: [PATCH] Enable portmap CNI plugin with kube-router (#6204) ... to have working `hostPort` for containers. See: https://www.kube-router.io/docs/user-guide/#hostport-support --- roles/network_plugin/kube-router/templates/cni-conf.json.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/network_plugin/kube-router/templates/cni-conf.json.j2 b/roles/network_plugin/kube-router/templates/cni-conf.json.j2 index c5327c1d01d..91fafacc4fc 100644 --- a/roles/network_plugin/kube-router/templates/cni-conf.json.j2 +++ b/roles/network_plugin/kube-router/templates/cni-conf.json.j2 @@ -16,6 +16,12 @@ {% endif %} "type":"host-local" } + }, + { + "type":"portmap", + "capabilities":{ + "portMappings":true + } } ] }