-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
kind cluster: context deadline exceeded #1401
Comments
Hi, |
Hi @denis256 Thanks, I can create pods and use kubectl for usual stuff. I can also see:
I can also run my own client-go up against the cluster. |
Hm, it may be a problem with accessing exposed services - it is responding when accessing through services? |
That is the problem, I think. The service is running in a kind cluster, using docker on macos. I can see the services, but unable to "curl 172.18.0.1:5000" to the service from host machine:
This is known issue running on non linux environment, but using client-go should be able to to access the services from within the same network, I think?
|
|
Maybe a suggestion could be to use https://github.com/curl/curl-docker |
I was getting the same error but managed to figure it out after looking closer. It's actually an issue with the image, "Suggest the author of docker.io/training/webapp:latest to upgrade the image to the OCI Format or Docker Image manifest v2, schema 2." Changing the image and corresponding port (in the test, too) will get the test to pass. |
Describe the bug
I am running k8s kind cluster on macos arm64. When running:
go test -v -tags kubernetes -run TestKubernetesHelloWorldExample
It do apply the pods, but when testing for
http://172.18.0.1:5000
it runs into problems, see terminal output below.Do you use client-go to access
http://172.18.0.1:5000
or do I need to create an ingress to access from the host?Nice to have
TestKubernetesHelloWorldExample 2024-04-16T19:26:01+02:00 retry.go:103: HTTP GET to URL http://172.18.0.1:5000 returned an error: Get "http://172.18.0.1:5000": context deadline exceeded (Client.Timeout exceeded while awaiting headers). Sleeping for 3s and will try again.
Versions
Terratest version: v0.46.13
MacOS
go version
go version go1.21.7 darwin/arm64
Same On Windows 11 WSL
go version go1.21.3 linux/amd64
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: