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

k6-controller starter doesn't find service pods #132

Closed
pekavau opened this issue Jul 27, 2022 · 2 comments
Closed

k6-controller starter doesn't find service pods #132

pekavau opened this issue Jul 27, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@pekavau
Copy link

pekavau commented Jul 27, 2022

Hi!

On our developer machines, we have the issue that when we start the operator, the starter pod tries to make http GET calls to the k6 services but can't dns resolve them.

We've tried this on 4 separate machines, with a mix of linux/windows and docker for desktop / minikube and get the same results.

When we manually do an nslookup from the starter pod, it times out, and ping doesn't find the services.
Manually adding the domain ".svc.cluster.local" does enable nslookup to find the services.

It does work after we disconnect the local machine from the network (!)

We don't know if it's related, but the IP addresses of the service nodes and the other pods could be in conflict with the ip addresses that our internal network devices are using (all in the 10...* range)

I'm attaching the starter logs, the dns logs, a successful nslookup, and the list of services. Let me know if you need more details, Cheers, pekavau.

coredns-6d4b75cb6d-62mf8.log

k6-sample-starter-94jcd.log

Screenshot 2022-07-27 154007

Screenshot 2022-07-27 153606

@pekavau
Copy link
Author

pekavau commented Jul 28, 2022

git_diff_fix_dns_resolution.txt
Note:
The attached diff works around the issue

Also, on my linux machine, when I switch minikube from the kvm2 virtualization driver to the docker driver, it also works (doesn't work with kvm2 driver)

@yorugac yorugac added the bug Something isn't working label Aug 9, 2022
@yorugac
Copy link
Collaborator

yorugac commented Aug 9, 2022

@pekavau IIRC, something similar came up on the community forum once before but it wasn't resolved then. Thank you for the issue and finding the fix! Would you like to make a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants