From eab59455863f4cfa821ff86dd44d44ecffd6eb25 Mon Sep 17 00:00:00 2001 From: Etienne Champetier Date: Sun, 26 Jun 2022 23:06:37 -0400 Subject: [PATCH] Add externalSetMarkChain to portmap config Looking at the online portmap doc, this seems to be the recommended configuration for k8s + portmap https://www.cni.dev/plugins/current/meta/portmap/ --- .../extend-kubernetes/compute-storage-net/network-plugins.md | 3 ++- .../troubleshooting-cni-plugin-related-errors.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/content/en/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins.md b/content/en/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins.md index 647111b375..e1082259a5 100644 --- a/content/en/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins.md +++ b/content/en/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins.md @@ -87,7 +87,8 @@ For example: }, { "type": "portmap", - "capabilities": {"portMappings": true} + "capabilities": {"portMappings": true}, + "externalSetMarkChain": "KUBE-MARK-MASQ" } ] } diff --git a/content/en/docs/tasks/administer-cluster/migrating-from-dockershim/troubleshooting-cni-plugin-related-errors.md b/content/en/docs/tasks/administer-cluster/migrating-from-dockershim/troubleshooting-cni-plugin-related-errors.md index 91a471290d..6b20bcaeba 100644 --- a/content/en/docs/tasks/administer-cluster/migrating-from-dockershim/troubleshooting-cni-plugin-related-errors.md +++ b/content/en/docs/tasks/administer-cluster/migrating-from-dockershim/troubleshooting-cni-plugin-related-errors.md @@ -134,7 +134,8 @@ cat << EOF | tee /etc/cni/net.d/10-containerd-net.conflist }, { "type": "portmap", - "capabilities": {"portMappings": true} + "capabilities": {"portMappings": true}, + "externalSetMarkChain": "KUBE-MARK-MASQ" } ] }