-
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
Add antctl CLI command to run post-installation checks #6061
Comments
cc @kanha-gupta |
I have an idea for a specific post-installation test, once #6133 (which defines the framework) is merged: when Antrea is deployed with encryption enabled (e.g., with Wireguard), we should include a test to validate that inter-Node Pod-to-Pod traffic is indeed encrypted. I think this could give users confidence that encryption is working correctly. |
Hi @antoninbas, The idea Sounds good to me :) |
We introduce a new antctl subcommand (antctl check) which can be used to run sanity checks on a K8s cluster / Antrea deployment. At the moment, we have "antctl check installation", which can be used to validate an Antrea installation, by running some connectivity checks. We only have a limited number of tests for now (inter-Node & intra-Node Pod connectivity, Pod connectivity to the Internet), but the frameowk should make it straightforward to add additional tests in the future. We validate the antctl command in CI using a Github workflow. For #6061 Signed-off-by: Kanha gupta <kanhag4163@gmail.com>
Closing the issue as we have added the framework and a selection of tests. More tests will be added over time. |
This is a subtask for #5896
Regardless of the installation method for Antrea, it would be useful to have an antctl CLI command to quickly validate an Antrea installation and identify possible problems with the cluster. In essence, this command would serve a similar purpose as
cilium connectivity test
, which currently runs 69 connectivity tests.We should probably start with a small set of tests initially (which by the way may not be limited to connectivity). If we have a robust and flexible framework, we can easily add new tests over time as needed.
Note that there is a fine line between post-installation checks and e2e tests. We want to avoid too much redundancy between the 2, and post-installation checks should ideally run pretty fast, so that users can run them after each installation and get results quickly.
The text was updated successfully, but these errors were encountered: