Skip to content
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

Open
XinShuYang opened this issue Sep 24, 2024 · 2 comments
Labels
area/OS/windows Issues or PRs related to the Windows operating system. kind/bug Categorizes issue or PR as related to a bug.

Comments

@XinShuYang
Copy link
Contributor

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

  1. Run antctl.exe supportbundle on a Windows Node.
  2. Observe the error output.

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:

PS C:\k\antrea\bin> .\antctl.exe supportbundle  
Error: error when creating system client: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined  

Versions:
Antrea v2.1

@XinShuYang XinShuYang added area/OS/windows Issues or PRs related to the Windows operating system. kind/bug Categorizes issue or PR as related to a bug. labels Sep 24, 2024
@luolanzone
Copy link
Contributor

@XinShuYang have you tried to define the KUBECONFIG env and rerun? I think this is expected when there is no right config file.

@luolanzone luolanzone added this to the Antrea v2.3 release milestone Oct 18, 2024
@luolanzone
Copy link
Contributor

@XinShuYang can you prioritize the bug fix for this issue in Antrea 2.3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/OS/windows Issues or PRs related to the Windows operating system. kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants