Unable to Access Kind Cluster from Pester Instance on Windows VM. #2627
|
Super odd situation here, and I'm wondering if anyone has some insight on this. I have a WSL instance running on a windows vm (interestingly enough, this does not repro on my physical machine), where I've installed docker in linux (not through docker desktop). And I've manually started the docker service with service docker start. I then created a kind cluster. I'm trying to run this particular test, but its failing to connect to the kind cluster. Calling wsl kubectl get pods works fine outside of pester tests, but is failing with this error in the tests. Note: IP is control plane of kind cluster I'm also observing this issue when calling kind. This container seems to be the control plane container. Any help is appreciated. Thank you! |
Replies: 3 comments 2 replies
|
For whatever reason, it looks like pester is causing a restart in my kind cluster, and it doesn't get reprovisioned until after pester exits. In Pester After 30 sec sleep (Different run, but this time I slept for 90 seconds). Note: Same exact status After pester test exits, seems kind cluster stabilizes. (This is the same for both the 30 sec and 90 sec sleeps). I would expect that a 90 sec sleep would have a different status than 30 sec sleep, but I guess pester may be preventing kind cluster from working? And once it exits, it can startup again. This would explain the same results |
|
Pester is just a powershell script, we don’t setup any proxy servers, and I don’t see a way pester could escape the isolation of a container and prevent your cluster from running correctly.
If your Pester is running on the host, and automating the cluster (e.g. for the purpose of testing a containerized web server) then it is totally possible it stops and restarts containers, but that is all your test code. Pester does not ship any docker specific tools.
Please tell us more about your setup and scenario, from the description above I am really unsure what you are asking and what the issue is.
…-j
________________________________
Od: jonnguyen1 ***@***.***>
Odesláno: Saturday, April 5, 2025 12:30:08 AM
Komu: pester/Pester ***@***.***>
Kopie: Subscribed ***@***.***>
Předmět: Re: [pester/Pester] Unable to Access Kind Cluster from Pester Instance on Windows VM. (Discussion #2627)
For whatever reason, it looks like pester is causing a restart in my kind cluster, and it doesn't get reprovisioned until after pester exits.
In Pester
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
696355031db2 kindest/node:v1.32.2 "/usr/local/bin/entr…" About a minute ago Exited (128) 5 seconds ago kind-control-plane
After 30 sec sleep
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
696355031db2 kindest/node:v1.32.2 "/usr/local/bin/entr…" 2 minutes ago Up Less than a second 127.0.0.1:41081->6443/tcp, 127.0.0.1:55000->30007/tcp, 127.0.0.1:65000->30008/tcp kind-control-plane
(Different run, but this time I slept for 90 seconds). Note: Same exact status
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
696355031db2 kindest/node:v1.32.2 "/usr/local/bin/entr…" 2 minutes ago Up Less than a second 127.0.0.1:41081->6443/tcp, 127.0.0.1:55000->30007/tcp, 127.0.0.1:65000->30008/tcp kind-control-plane
After pester test exits, seems kind cluster stabilizes. (This is the same for both the 30 sec and 90 sec sleeps).
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
38125a728e37 kindest/node:v1.32.2 "/usr/local/bin/entr…" 3 minutes ago Up 12 seconds 127.0.0.1:41301->6443/tcp, 127.0.0.1:55000->30007/tcp, 127.0.0.1:65000->30008/tcp kind-control-plane
I would expect that a 90 sec sleep would have a different status than 30 sec sleep, but I guess pester may be preventing kind cluster from working? And once it exits, it can startup again. This would explain the same results
—
Reply to this email directly, view it on GitHub<#2627 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABLYLYLTGCXPIYOJHYHPFBD2X4BXBAVCNFSM6AAAAAB2PSIMDSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENZTGA4TGNI>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
|
Pester is a PowerShell module, it does not start proxies, it does not touch docker or WSL, and it has no way to restart your containers. The only thing it does is run your test code. To confirm it is not Pester, take the same If it only happens under Pester, please share a minimal repro and we can look again. |
Pester is a PowerShell module, it does not start proxies, it does not touch docker or WSL, and it has no way to restart your containers. The only thing it does is run your test code.
To confirm it is not Pester, take the same
wsl -d Ubuntu -u root -e bash -c 'kubectl get pods -A'call and run it in a loop from a plain script without Pester. If the cluster restarts there as well, it is the VM, most likely memory pressure from running WSL, docker and the kind node together.If it only happens under Pester, please share a minimal repro and we can look again.