-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use different CNI conf file when configuring chaining with Antrea
The current solution which consists of overwriting the existing CNI conf file (e.g., 10-aws.conflist) suffers from one issue for which I cannot find a simple workaround: When a Node restarts, there can be a short window of time during which the CNI conf file reverts to the old one (without Antrea). If some Pods are restarted / scheduled on the Node during that time, they will not be processed by Antrea and NetworkPolicies may not be applied to them. The solution I have come up with is to create a new CNI conf file with higher priority (00-antrea.conflist). Because that file will stay the same during Node restart, the problematic window of time does not exist anymore. We still watch for changes to the intial CNI conf file (e.g., 10-aws.conflist), so we can update 00-antrea.conflist as needed. We also update antrea-aks-node-init.yml and antrea-gke-node-init.yml to use the same container image as antrea-eks-node-init.yml. Using v2 ensures that the script is run again if it is modified at runtime. Signed-off-by: Antonin Bas <abas@vmware.com>
- Loading branch information
1 parent
2a092ab
commit 0969602
Showing
4 changed files
with
35 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters