-
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
Services without cluster IP do not get forwarded #167
Comments
I traced the issue to the following check, the issue is my service does not have a hostname specified in the endpoint so it's skipped:
A change like this fixes it but I don't know the repercussions and if it's safe:
|
@giulianob thank you for the issue and all the details :) Since this is not a headless service I think the code that would need updating is below. Bridge uses dns to set up its forwarding logic, can a service of type NodePort still be address using dns or just using is nodeIP? In other words when you communicate from serviceA to your serviceB (of type nodeport), do you do NodeIP:Port or ServiceB:port? If it can be accessed using dns, then it would be just a small change to expand that || to include "NodePort", but if it is not reachable using dns then it would be a bigger change.
|
@elenavillamil We use DNS like |
@giulianob thank you. This issue is related/duplicate with #155 . I am currently working on a fix. Your code snipped was correct as to why, my comment is wrong since your service is not of type nodeport (not sure how I came to conclusion you were using NodePort service). |
@giulianob Fix for this got deployed today. Please feel free to re-open if you still the issue after upgrading to latest version. |
Describe the bug
I have a service named
metadata
which does not have a cluster IP assigned but has an endpoint. The service does not get added to my hosts file when I usedsc
.The list of services I have:
If I forward the
frontend
service then you can seemetadata
does not get added to my hosts file:The
metadata
service does have an endpoint:I can port forward the
metadata
service withkubectl
I can also exec into the service in my cluster and ping
metadata
so I would expect it to be also be available locally:Mention the platform you are using
Windows 11 with
dsc
CLI v1.0.20230124.1Expected behavior
Services that do not have a Cluster IP defined should get forwarded
The text was updated successfully, but these errors were encountered: