Kubernetes Dashboard installation via kubectl apply¶
The Kubernetes Dashboard is a web-based UI tool provided officially for Kubernetes cluster management^[400-devops__06-Kubernetes__k8s-ithelp__Day5__README.md]. It allows users to visualize container states and manage the cluster without relying solely on the kubectl command-line interface^[400-devops__06-Kubernetes__k8s-ithelp__Day5__README.md].
Installation¶
To deploy the Dashboard, execute the following command to download and apply the recommended configuration manifest^[400-devops__06-Kubernetes__k8s-ithelp__Day5__README.md]:
[kubectl](<./kubectl.md>) apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.5.1/aio/deploy/recommended.yaml
Subsequent installation steps involve verifying the deployment status, creating a proxy for access, and generating a login token^[400-devops__06-Kubernetes__k8s-ithelp__Day5__README.md].
Access and Authentication¶
Once the proxy is started using kubectl proxy, the dashboard can be accessed via the local URL^[400-devops__06-Kubernetes__k8s-ithelp__Day5__README.md]:
http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
Authentication requires a Service Account token. A common setup involves creating a ClusterRoleBinding that grants the default Service Account in the kube-system namespace the cluster-admin role, followed by generating the associated Secret token^[400-devops__06-Kubernetes__k8s-ithelp__Day5__README.md].
Related Concepts¶
- kubectl
- [[Service Account]]
Sources¶
^[400-devops__06-Kubernetes__k8s-ithelp__Day5__README.md]