This message was deleted.
# k3s
a
This message was deleted.
g
I tried that too, but still cannot reach the dashboard
FYI, I try from another device from my local network
@bored-farmer-36655
b
@glamorous-accountant-39131 http://127.0.0.1:9000/dashboard/ should work
g
Not really :(
b
@glamorous-accountant-39131 Do you see Handling connection for 9000 output in the terminal you port forwarded from?
g
Copy code
$ kubectl -n kube-system port-forward `kubectl get pods -n kube-system -o custom-columns=:metadata.name | grep '^traefik-'` 9000:9000
Forwarding from 127.0.0.1:9000 -> 9000
Forwarding from [::1]:9000 -> 9000 ```
b
@glamorous-accountant-39131 but nothing else after that when you try to connect?
g
Nothing else
b
@glamorous-accountant-39131 and k3s is running etc and you can see the pods..
g
Copy code
kube-system   traefik-66c46d954f-gjmz9                  1/1     Running     14 (5h45m ago)   31d
b
@glamorous-accountant-39131 not sure, I use rancher-desktop here for testing... so I also see the svclb-traefik
@glamorous-accountant-39131 and this is on your local machine, running what OS?
g
Yes, I connect by ssh on my k3s server
I run Debian
b
@glamorous-accountant-39131 and you get output in the ssh terminal if you run
curl -kv <http://localhost:9000/dashboard/#/>
and also see a
Handling connection for 9000
in the port forwarding terminal
g
Ah works !
Copy code
kubectl -n kube-system port-forward `kubectl get pods -n kube-system -o custom-columns=:metadata.name | grep '^traefik-'` 9000:9000
Forwarding from 127.0.0.1:9000 -> 9000
Forwarding from [::1]:9000 -> 9000
Handling connection for 9000
Copy code
<!DOCTYPE html><html><head><title>Traefik</title><meta charset=utf-8><meta name=description content="Traefik UI"><meta name=format-detection content="telephone=no"><meta name=msapplication-tap-highlight content=no><meta name=viewport content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width"><link rel=icon type=image/png href=statics/app-logo-128x128.png><link rel=icon type=image/png sizes=16x16 href=statics/icons/favicon-16x16.png><link rel=icon type=image/png sizes=32x32 href=statics/icons/favicon-32x32.png><link rel=icon type=image/png sizes=96x96 href=statics/icons/favicon-96x96.png><link rel=icon type=image/ico href=statics/icons/favicon.ico><link rel=apple-touch-icon href=statics/icons/apple-icon-152x152.png><link rel=apple-touch-icon sizes=152x152 href=statics/icons/apple-icon-152x152.png><link rel=apple-touch-icon sizes=167x167 href=statics/icons/apple-icon-167x167.png><link rel=apple-touch-icon sizes=180x180 href=statics/icons/apple-icon-180x180.png><link href=css/041f4ca8.f6e3d404.css rel=prefetch><link href=css/05759188.7a9c0db7.css rel=prefetch><link href=css/09354cb8.0e433876.css rel=prefetch><link href=css/09995f48.60caa8f0.css rel=prefetch><link href=css/0c428e32.ed2ba60f.css rel=prefetch><link href=css/18c6e965.5d8876c8.css rel=prefetch><link href=css/3e3ce03c.9b22e80f.css rel=prefetch><link href=css/46fd955e.9b22e80f.css rel=prefetch><link href=css/491024e9.9b22e80f.css rel=prefetch><link href=css/4f0a01e4.f8382310.css rel=prefetch><link href=css/52875482.9b22e80f.css rel=prefetch><link href=css/54b4dbdf.6e23d447.css rel=prefetch><link href=css/6d73c73c.9b22e80f.css rel=prefetch><link href=css/77d911b4.9b22e80f.css rel=prefetch><link href=css/797e4f23.9b22e80f.css rel=prefetch><link href=css/b34404c8.9b22e80f.css rel=prefetch><link href=js/041f4ca8.4f70d06d.js rel=prefetch><link href=js/05759188.f1376142.js rel=prefetch><link href=js/09354cb8.2e39e534.js rel=prefetch><link href=js/09995f48.a140ed0a.js rel=prefetch><link href=js/0c428e32.92dcacf8.js rel=prefetch><link href=js/18c6e965.5dc22ece.js rel=prefetch><link href=js/2d21e8fd.c00ac0e6.js rel=prefetch><link href=js/3e3ce03c.293f4729.js rel=prefetch><link href=js/46fd955e.343a8488.js rel=prefetch><link href=js/491024e9.5ba4955c.js rel=prefetch><link href=js/4f0a01e4.e6772caf.js rel=prefetch><link href=js/52875482.65e645a6.js rel=prefetch><link href=js/54b4dbdf.915c5773.js rel=prefetch><link href=js/6d73c73c.d8a27bbb.js rel=prefetch><link href=js/77d911b4.8d5002b7.js rel=prefetch><link href=js/797e4f23.771f63ae.js rel=prefetch><link href=js/b34404c8.7a4b9be8.js rel=prefetch><link href=css/app.3d2d5994.css rel=preload as=style><link href=js/app.45ca101c.js rel=preload as=script><link href=js/runtime.db7dd4a3.js rel=preload as=script><link href=js/vendor.f60bcb86.js rel=preload as=script><link href=css/app.3d2d5994.css rel=stylesheet></head><body><div id=q-app></div><script type=text/javascript src=js/app.45ca101c.js></script><script type=text/javascript src=js/runtime.db7dd4a3.js></script><script type=text/javascri* Connection #0 to host localhost left intact
pt src=js/vendor.f60bcb86.js></script></body></html>```
b
@glamorous-accountant-39131 so you need to do some tunelling to get that system forwarding to your local host
g
Yep
b
@glamorous-accountant-39131 something like
ssh -N -L 9000:127.0.0.1:9000 username@server-ip
should work
g
Get
channel 2: open failed: connect failed: Connection refused