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

weave-scope forwarding doesn't work #17

Closed
joscha-alisch opened this issue Jul 24, 2019 · 3 comments
Closed

weave-scope forwarding doesn't work #17

joscha-alisch opened this issue Jul 24, 2019 · 3 comments
Labels

Comments

@joscha-alisch
Copy link

Currently, it seems like it is not possible to use port forwarding with weave-scope (https://github.com/weaveworks/scope)

On the command-line it works fine with:

~ kubectl port-forward svc/weave-scope-weave-scope -n weave-scope 4040:80
Forwarding from 127.0.0.1:4040 -> 4040
Forwarding from [::1]:4040 -> 4040
Handling connection for 4040

I immediately see the weave-scope UI in the browser.
Interestingly it directly forwards to port 4040 instead of 80.

When using the same config in kube-forwarder I don't get a response when trying to access the UI. Just the browsers "Waiting for localhost..."

image

In the console I don't see any errors and I'm not sure if there is an option to enable debug mode.

OS:

Linux 5.2.1-arch1-1-ARCH #1 SMP PREEMPT Sun Jul 14 14:52:52 UTC 2019 x86_64 GNU/Linux

gcloud sdk:

Google Cloud SDK 254.0.0
alpha 2019.07.15
beta 2019.07.15
bq 2.0.45
core 2019.07.15
gsutil 4.40
kubectl 2019.07.15
@proAlexandr
Copy link
Contributor

proAlexandr commented Jul 26, 2019

Hi @joscha-alisch
Thanks a lot for the bug report. I discovered that the implementation of port forwarding for "service" kind does have few issues. I am going to fix them in the next release.

Issues:

  • Kube Forwarder allows forwarding to ports which service does not have. I think it has to throw an error as kubectl does
$  kubectl port-forward svc/postgres -n postgres-namespace 4040:80
> error: Service postgres does not have a service port 80 
  • Kube Forwarder doesn't have something which looks like mort mapping. So it doesn't directly forwards to port 4040 instead of 80 as it is shown in the issue description.

@proAlexandr
Copy link
Contributor

@joscha-alisch HI, we've just released a new version. Port mapping is implemented there. Could you please check it?

@joscha-alisch
Copy link
Author

Hi @proAlexandr , it does indeed work now. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants