-
Notifications
You must be signed in to change notification settings - Fork 373
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
Validate user config options after Antrea controller/agent start #868
Comments
Ideally, both validation and/or automatic CIDR discovery (fail if discovery attempt is unsuccessful) would result in the best user experience. Discovery of CIDR maybe platform specific. For example, on EKS standard MTU discovery could also be cluster specific. Default on EKS is 9001, it would be great to update EKS instructions with that default value (based on https://docs.aws.amazon.com/eks/latest/userguide/cni-env-vars.html). |
@jianjuns if you create a separate issue for automatic CIDR discovery (even if it is done similar to what I described) please let me know. As far as the MTU parameter: may be in the documentation for EKS we should state the default is 9001 (which is inherited from EC2). If there is a way (I just used ip link on the pod) to also discover it automatically, then EKS installation is going to be super simple - just run the yaml with the deployment. |
For EKS (networkPolicyOnly mode), we plan to switch to OVS kube-proxy soon, and that will remove the serviceCIDR parameter requirement.
For MTU, @reachjainrahul is working on MTU auto-discovery, and I think it will be available soon. We will update the documentation together with that. @reachjainrahul : I remember you have an issue for MTU discovery, but I cannot find it now? |
Update of the progress: But still keep the issue open until we remove or validate ServiceCIDR parameter for the encap mode. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment, or this will be closed in 180 days |
Describe the problem/challenge you have
Currently Antrea does not validate all user config options (e.g. serviceCIDR, defaultMTU). Misconfiguration might lead to Antrea not working as expected.
Describe the solution you'd like
Antrea controller and/or agent should validate all config options at start, and might fail with clear error logs when options are not configured correctly that will prevent Antrea from working probably.
The text was updated successfully, but these errors were encountered: