-
Notifications
You must be signed in to change notification settings - Fork 59
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
Unable to resolve DNS names for certain Cluster-IP services #155
Comments
@d6teo thank you for raising this issue. You mentioned "Also occurs when trying to follow the todoapi tutorial (as described in #150)", but todo app tutorial doesnt have any headless service. Do you have a sample application we could use to debug/reproduce on our end? Its okay if you dont, but it would help if you do. Does your headless service endpoint subset not include any address? Or does it have empty subsets? Dev notes: I think it may be related to this PR: https://github.com/Azure/Bridge-To-Kubernetes/pull/78/files#diff-e56da5fef4dfa1b7746514ca010dc019e9cd7dea08c0cd6cea0e30d0a5d00d8b |
@elenavillamil Thanks for investigating. Exception details: In regards to the issue with deployments that expose headless services, i have noticed similar behavior; the debugged app is able to connect to these services however the output will occasionally show exceptions ( The deployments/services exposed are the same as the ones illustrated in the original comment; however if I can provide any other info that can help with the issue, feel free to send over the commands that will get the required info (not really familiar with k8s concepts) |
Hi @d6teo the issue you saw with databaseapi was a bad image uploaded to public docker for the sample todo app. If you retry now it should work fine. Regarding the headless service, fix for this got deployed today. Please feel free to re-open if you still see the issues after upgrading to latest version. |
Describe the bug
Issue started after Visual Studio's extension upgrade to version 3.1.20230118.1.
Debugged services are not able to resolve DNS names to IP addresses for deployments that expose both a headless service and a Cluster-IP service.
(does not seem to occur when a deployment exposes a single Cluster-IP service)
Examples:
Redis (bitnami's Redis chart, StackExchangeRedis package used in debugged service): No such host is known
RabbitMQ (bitnami's RebbitMQ chart, RabbitMQ.Client package used in debugged service): No ip address could be resolved for (DNS name of service)
Also occurs when trying to follow the todoapi tutorial (as described in #150)
Mention the platform you are using
Microsoft Visual Studio Professional 2022, Version 17.4.3
Bridge to Kubernetes 2022 Version 3.1.20230118.1
Minikube Version: v1.23.2 running on HyperV
Expected behavior
Debugged services should be able to resolve DNS names to IP addresses for all deployed services.
Screenshots
Deployed services:
BTK8s setup for service 'activityapi':
Exception when debugged 'activityapi' services tries to resolve IP for service 'eventbus-development-rabbitmq' (it is however able to resolve other services whose deployments do not expose a headless service, e.g. 'periodicdataapi'):
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: