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/
This commit is contained in:
Etienne Champetier 2022-06-26 23:06:37 -04:00
parent 5b2632d44e
commit eab5945586
2 changed files with 4 additions and 2 deletions

View File

@ -87,7 +87,8 @@ For example:
},
{
"type": "portmap",
"capabilities": {"portMappings": true}
"capabilities": {"portMappings": true},
"externalSetMarkChain": "KUBE-MARK-MASQ"
}
]
}

View File

@ -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"
}
]
}