Hi,
I have kubectl.exe installed on my windows 10 (build 19045 - 22H2).
On every command I run the execution starts after several seconds (40 - 130 seconds). It hangs and after it runs correctly.
For example I runned the following command from powershell
date; kubectl.exe versione -v20; date
and i objtain for example
10:00:00 (date command)
10:02:10 starts the verbose output of command (kubectl.exe versione -v20 command)
10:02:12 ends command (date command)
08:50:26
I0126 08:51:15.865759 11028 round_trippers.go:466] curl -v -XGET -H “User-Agent: kubectl.exe/v1.26.4+vmware.wcp.0 (windows/amd64) kubernetes/c3baec6” -H “Accept: application/json, /” ‘http://localhost:8080/version?timeout=32s’
I0126 08:51:15.945352 11028 round_trippers.go:495] HTTP Trace: DNS Lookup for localhost resolved to [{127.0.0.1 } {::1 }]
I0126 08:51:17.949193 11028 round_trippers.go:508] HTTP Trace: Dial to tcp:127.0.0.1:8080 failed: dial tcp 127.0.0.1:8080: connectex: No connection could be made because the target machine actively refused it.
I0126 08:51:18.311595 11028 round_trippers.go:508] HTTP Trace: Dial to tcp:[::1]:8080 failed: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.
I0126 08:51:18.312331 11028 round_trippers.go:553] GET http://localhost:8080/version?timeout=32s in 2379 milliseconds
I0126 08:51:18.313607 11028 round_trippers.go:570] HTTP Statistics: DNSLookup 5 ms Dial 2049 ms TLSHandshake 0 ms Duration 2379 ms
I0126 08:51:18.313983 11028 round_trippers.go:577] Response Headers:
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:“1”, Minor:“26”, GitVersion:“v1.26.4+vmware.wcp.0”, GitCommit:“c3baec6e66bbd8235269e021ea047488f4930fca”, GitTreeState:“clean”, BuildDate:“2023-07-30T15:55:24Z”, GoVersion:“go1.19.8 X:boringcrypto”, Compiler:“gc”, Platform:“windows/amd64”}
Kustomize Version: v4.5.7
I0126 08:51:18.315980 11028 helpers.go:264] Connection error: Get http://localhost:8080/version?timeout=32s: dial tcp 127.0.0.1:8080: connectex: No connection could be made because the target machine actively refused it.
Unable to connect to the server: dial tcp 127.0.0.1:8080: connectex: No connection could be made because the target machine actively refused it.
08:51:18
I and my collegues had same problem, only one it works fine (new installed pc)
I tryed to create a new user with the same result.
How can I resolve this problem?
Regards,
Stefano