From 9b3491f9f7273a27c4c9a597b3eec3a46566a6c0 Mon Sep 17 00:00:00 2001 From: Michael Wyraz Date: Sat, 15 Dec 2018 23:49:48 +0100 Subject: [PATCH] Add port forwarding to config provided by the docker image --- images/70-multus.conf | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/images/70-multus.conf b/images/70-multus.conf index 591c174af..cf92de501 100644 --- a/images/70-multus.conf +++ b/images/70-multus.conf @@ -1,14 +1,29 @@ { "name": "multus-cni-network", "type": "multus", + "capabilities": { + "portMappings": true + }, "delegates": [ { - "type": "flannel", - "name": "flannel.1", - "delegate": { - "isDefaultGateway": true, - "hairpinMode": true - } + "cniVersion": "0.3.1", + "name": "default-cni-network", + "plugins": [ + { + "type": "flannel", + "name": "flannel.1", + "delegate": { + "isDefaultGateway": true, + "hairpinMode": true + } + }, + { + "type": "portmap", + "capabilities": { + "portMappings": true + } + } + ] } ], "kubeconfig": "/etc/cni/net.d/multus.d/multus.kubeconfig"