mvysny / shepherd

Build & run apps automatically
1 stars 0 forks source link

microk8s dashboard-proxy fails with: lost connection to pod #14

Closed mvysny closed 1 year ago

mvysny commented 1 year ago
0412 10:27:25.893052   56614 portforward.go:407] an error occurred forwarding 10443 -> 8443: error forwarding port 8443 to pod dcc8a2228daab8d94df1bee0fc09b3da3bddf7101076c1d40a23ac1f6992b81a, uid : failed to execute portforward in network namespace "/var/run/netns/cni-b33c75cb-ddb2-c05b-9fab-e1cf0dca2197": read tcp4 127.0.0.1:41476->127.0.0.1:8443: read: connection reset by peer
E0412 10:27:25.894433   56614 portforward.go:233] lost connection to pod
mvysny commented 1 year ago

Oh what the fuck, the problem is that I'm browsing to http://localhost:10443 while I should be browsing to https://localhost:10443. When browsing to http, the browser will say Client sent an HTTP request to an HTTPS server. and microk8s dashboard-proxy will CRASH with the scary network issue, not pointing to the https problem in any way.

Long story short: make sure you're using https when accessing the microk8s dashboard.