cnrancher / autok3s

Run K3s Everywhere
https://www.suse.com
Apache License 2.0
781 stars 77 forks source link

[BUG] helm-dashboard can't open #630

Closed orangedeng closed 1 year ago

orangedeng commented 1 year ago

Describe the bug Can not open helm dashboard via docker-run autok3s instance

To reproduce Steps to reproduce the behavior:

  1. docker run -itd --restart=unless-stopped --net=host -v /var/run/docker.sock:/var/run/docker.sock cnrancher/autok3s:v0.9.0-rc2
  2. create a native cluster with 1 node.
  3. enable helm-dashboard feature flag.
  4. accessing helm dashboard in clusters list page

Expected behavior Jump to helm dashboard page

Screenshots

截屏2023-08-24 16 06 53
INFO[0000] Helm Dashboard by Komodor, version 1.3.3 (b61adf133f639b8bffd43925b5b4b8230c197a26 @ 2023-06-22T08:59:05Z) 
INFO[0000] User analytics is collected to improve the quality, disable it with --no-analytics 
INFO[0000] Access web UI at: http://localhost:34325/

Environments (please complete the following information):

Additional context Add any other context about the problem here.

JacieChao commented 1 year ago

As helm-dashboard UI can't support the Base url setting, so we can't use a proxy to redirect requests by AutoK3s server. We changed the bind-address to 0.0.0.0 for docker mode server and users can access the helm-dashboard UI only by running with host-network.

orangedeng commented 1 year ago

Test passed with v0.9.0-rc3.