Error from server (NotFound): services "kubernetes-dashboard-nginx-controller" not found
What happened?
I installed Kubernetes on Ubuntu 22.04, added 2 workers, i can deploy everything and all works, but after install of the Dashboard and using this command: kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-nginx-controller 8443:443
It says: Error from server (NotFound): services "kubernetes-dashboard-nginx-controller" not found
What did you expect to happen?
For it to work and forward.
How can we reproduce it (as minimally and precisely as possible)?
I followed this on a clean install: https://github.com/kubernetes/dashboard/releases
after following these install instructions: https://devopscube.com/setup-kubernetes-cluster-kubeadm/
Anything else we need to know?
Master node is on a ESXI Server
What browsers are you seeing the problem on?
Chrome, Microsoft Edge, Firefox
Kubernetes Dashboard version
V3
Kubernetes version
1.28.2
Dev environment
No response
I meet the same problem.
Not enough details about the installation. We need to know the exact steps and commands you used. Additionally, it would be good to get output of kubectl -n kubernetes-dashboard get svc and kubectl -n kubernetes-dashboard get all commands.
Ok, I got it working after: kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard 8443:443 changing the name of the service: from kubernetes-dashboard-nginx-controller to kubernetes-dashboard. This should be fixed in the documentation.
Documentation is actually correct. I have rechecked it and service name was correct. There must be something different in your environment that impacts service name.
I meet the same problem. 哈哈哈
Ok, I got it working after:
kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard 8443:443changing the name of the service: fromkubernetes-dashboard-nginx-controllertokubernetes-dashboard. This should be fixed in the documentation.
same here, installed it on AKS
Documentation is actually correct. I have rechecked it and service name was correct. There must be something different in your environment that impacts service name.
I just ran into the same problem and the kubernetes-dashboard service name was also what I needed to use; kubernetes-dashboard-nginx-controller from this page https://github.com/kubernetes/dashboard/blob/master/docs/user/accessing-dashboard/README.md#kubectl-port-forward did not work. Perhaps the discrepancy is because I installed from Helm?
Starting from the next release access step will slightly change making this issue invalid. It is already changed on master.
/close
@floreks: Closing this issue.
In response to this:
Starting from the next release access step will slightly change making this issue invalid. It is already changed on master.
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.