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

Issue with k8s.io/docs/tasks/access-application-cluster/web-ui-dashboard/ #49270

Open
richarsi opened this issue Jan 1, 2025 · 4 comments
Open
Labels
kind/bug Categorizes issue or PR as related to a bug. language/en Issues or PRs related to English language priority/backlog Higher priority than priority/awaiting-more-evidence. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@richarsi
Copy link

richarsi commented Jan 1, 2025

I am very new to Kubernetes.

I followed the instructions on the following page:
https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/

After the step "kubectl proxy" I was not able to launch the web UI using the URL: http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/

The page displayed:

{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "services \"kubernetes-dashboard\" not found",
  "reason": "NotFound",
  "details": {
    "name": "kubernetes-dashboard",
    "kind": "services"
  },
  "code": 404
}

I found this article:
https://anirbanbh.medium.com/how-to-run-kubernetes-dashboard-on-with-local-admin-user-57e208f376e8

And used the following command:

kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443

And i was able to launch the login page via this URL https://localhost:8443/

I can't explain why I was unable to access the page using port forwarding but not the proxy command. I also don't know if i was doing something wrong when using the proxy command. If you can reproduce this then maybe the docs could be updated?

@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jan 1, 2025
@sftim
Copy link
Contributor

sftim commented Jan 2, 2025

I see that https://artifacthub.io/packages/helm/k8s-dashboard/kubernetes-dashboard depends on Kong ingress.

It sounds like the existing official task page is out of date.

/language en
/kind bug
/priority backlog
/triage accepted

@k8s-ci-robot k8s-ci-robot added language/en Issues or PRs related to English language kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence. triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 2, 2025
@sftim
Copy link
Contributor

sftim commented Jan 2, 2025

If we update the guide, we should let people know that installing the dashboard will also deploy a new ingress controller; they may not be expecting that.

@sftim
Copy link
Contributor

sftim commented Jan 2, 2025

May fix #49257

@sftim
Copy link
Contributor

sftim commented Jan 2, 2025

Actually, I haven't checked; maybe Kong embedded within that chart is just a Service and not an ingress controller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. language/en Issues or PRs related to English language priority/backlog Higher priority than priority/awaiting-more-evidence. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

3 participants