-
Notifications
You must be signed in to change notification settings - Fork 28
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
Tunnel mix-up with multiple ngrok Instances #291
Comments
Thanks for the report! I think that what you're describing is a controller issue, and I think that we have to fix something on our end. As a workaround, if everyone uses either a different k8s namespace, or a different ngrok account, that should avoid this issue. Those are only workarounds though, I do think the controller should ideally support what you're trying to do now (even though it doesn't currently). So, why does this issue happen? The edge similarly has a backend that matches those labels. That means two different clusters with the ingress controller that have the same k8s service name, k8s service port, and k8s namespace will be identically matched or not matched by edges. The ingress controller does have a "manager name" option which seems like it could potentially help here, but the "manager name" isn't used for tunnel labels, so it doesn't help here. cc @nikolay-ngrok I'm curious on your take here. Should we have a different label for it? Should we have both the manager label, and a new "k8s-cluster-id" label? Also, to spitball an alternative option, I think using the k8s service |
@euank |
Yeah, I like this approach better than adding the manager name to the set of labels, since you'd then have to verify uniqueness across disjoint k8s clusters, which feels wrong to me. |
Hey guys, is there an ETA for the next release that includes this fix? |
What happened
We use the ngrok ingress controller to expose a local kind cluster endpoint (Kubernetes in Docker) for connecting with an external service. Every developer has their own local setup with an ngrok ingress controller running. Things work fine with just one ngrok controller, but when there are two, we notice the routing mix-up. My domain's traffic ends up at my coworker's station.
I've followed the setup guide on this GitHub repo and not sure if I missed something or if it's a controller issue.
Can sharing logs or more info help fix this?
What you think should happen instead
Traffic from my ngrok domain should route to my tunnel.
How to reproduce
No response
The text was updated successfully, but these errors were encountered: