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

port-forward traffic skips the proxy #2352

Closed
grampelberg opened this issue Feb 22, 2019 · 4 comments
Closed

port-forward traffic skips the proxy #2352

grampelberg opened this issue Feb 22, 2019 · 4 comments

Comments

@grampelberg
Copy link
Contributor

What is the issue?

Issuing requests to a service that has been exposed via kubectl port-forward skips the proxy entirely. This makes testing service profiles a little challenging as it takes some effort to

How can it be reproduced?

Run port-forward and tap, see that requests sent to localhost do not show up in tap. Verified via tcpdump.

@olix0r
Copy link
Member

olix0r commented Feb 22, 2019

Is the only solution to this to change the iptables behavior to intercept port-forwards? Or is it suitable to provide better debugging tools (i.e. #2199 ) that can exercise proxy behavior without port-forward?

@grampelberg
Copy link
Contributor Author

@olix0r I would like to be able to generate load for a service from my local computer and have that show up in stats. We could (and should) build out other debugging tools.

I think the core of this is that port-forward doesn't go through the proxy and so if you're doing some manual testing the way you've done it before, nothing appears to work. We'll need to add warnings/alerts into the dashboards and docs to make sure folks have their expectations set correctly.

fwiw, I'm not 100% sure it would be possible as I'm not clear on how port-forward works under the covers and tcpdump shows localhost as the source.

@stale
Copy link

stale bot commented May 26, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Sep 8, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 8, 2019
@stale stale bot closed this as completed Sep 22, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants