-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thick plugin: Add configuration options in documentation to configure Master CNI #1237
Comments
if needed, I can create a PR to update the documentation. |
Thanks Raghs -- can you provide a documentation update PR and we can continue the discussion there? Thanks! |
@dougbtv Could you please review the above PR. |
@raghs-aws thank you for sharing about this, I was looking in to migration from thin to thick plugin and was wondering exactly about this master-cni configs in the thick plugin. what is equivalent to defaultnetworks in thickplugin configs ? and wondering if auto can be disabled ? |
Seems like there are are also manual options for masternetwork even in thick plugin, but still good to know about this flag to use if multusconfigs are set for auto. Anyway will play around with thick plugin to explore it. |
yes in old thin plugin it was multus-master-cni-file option. This flag multusMasterCNI with your primary CNI was the solution. we used and running it in our environment. This solved the race condition between istio and primary CNI, you can use auto and which is fine for other configs. i tried a few other configs like clusterNetwork etc, but somehow didnt help. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
What happend:
Thick plugin doesn't set the master cni or the default cni, and keeps "multusConfigFile": "auto". This causes Multus to pick other cnis than primary-cni in some cases , if we have some other cnis installed like istio-cni.
What you expected to happen:
There should be an option to keep Master CNI defined to avoid multus accidently picking other cnis if there are more than 1 cnis in the path.
How to reproduce it (as minimally and precisely as possible):
install istio-cni with hostNetwork enabled
Anything else we need to know?:
we can override the behavior if add "multusMasterCNI" in the daemon-config. below is an option (in this case its vpc-cni)
i dont see documentation mentioning this for thick plugin. request is to update this in the Thick plugin documentation and/or configuration documentation, so that users are aware how to override the auto selection of primary cni.
Environment:
image path and image ID (from 'docker images')
kubectl version
): 1.25--rw-r--r-- 1 root root 906 Jan 25 17:24 10-aws.conflist
-rw------- 1 root root 216 Jan 27 14:54 00-multus.conf
drwxr-xr-x 2 root root 60 Mar 5 17:19 whereabouts.d
-rw------- 1 root root 2947 Mar 5 17:52 ZZZ-istio-cni-kubeconfig
-rw-r--r-- 1 root root 334 Mar 5 17:52 YYY-istio-cni.conf
kubectl get net-attach-def -o yaml
)kubectl get pod <podname> -o yaml
)The text was updated successfully, but these errors were encountered: