k8snetworkplumbingwg/multus-cni

Add Pod's netns to annotations

jiayoukun opened this issue · 2 comments

In traditional single-CNI Pods, there is only one network interface, and the network topology is relatively simple. However, when using multus-cni, multiple CNIs are typically used simultaneously, resulting in multiple overlay networks. In Kubernetes, the netns of a Pod object is not publicly exposed. As a component responsible for managing multiple CNIs, it should patch the netns to the Pod's annotations, providing developers with more flexibility to manage fine-grained dynamic routing across multiple CNIs.
What do you think?
I was originally planning to submit a PR with the code changes, but currently, multus-cni's handling of annotations depends on
#network-attachment-definition-client.

This is a great discussion for the NPWG, you can find the connection info @ https://github.com/k8snetworkplumbingwg/community! Thanks, it'd be great to have you join to discuss it.