-
Notifications
You must be signed in to change notification settings - Fork 374
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
antctl.exe fails to run on Windows VM due to missing in-cluster configuration #6687
Comments
@XinShuYang have you tried to define the KUBECONFIG env and rerun? I think this is expected when there is no right config file. |
@XinShuYang can you prioritize the bug fix for this issue in Antrea 2.3? |
@luolanzone I believe the root cause is the expired kubeconfig file on the Windows testbed. On a new created Kubernetes cluster, I cannot reproduce this issue, but after modifying or removing the kubeconfig file, I can reproduce the same error. The KUBECONFIG env is not mandatory. According to the current implementation, the correct kubeconfig path can be obtained from antrea/pkg/antctl/runtime/runtime.go Lines 45 to 48 in 18e9111
|
@XinShuYang is possible to detect that antctl is out of a Pod and skip checking in-cluster config? just return kubeconfig file not found error directly if it's outside of a Pod |
@luolanzone Do you mean we will drop the support to run antctl on VM ( |
@luolanzone In-cluster config method was added in #3645 , so even without kubeconfig file the client will still try to get in-cluster config. But I think we can enhance the error log for debugging purpose. |
Describe the bug
Running antctl.exe on a Windows VM results in an error. The same command works fine when executed inside a Windows pod.
To Reproduce
Expected
The command antctl.exe supportbundle should execute successfully on the Windows VM, similar to how it works inside the Windows pod.
Actual behavior
When executing antctl.exe on a Windows VM, the following error is returned:
Versions:
Antrea v2.1
The text was updated successfully, but these errors were encountered: