... | ... | @@ -86,4 +86,10 @@ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/a |
|
|
```
|
|
|
this will create all the necessary resource in the `kubernetes-dashboard` namespace.
|
|
|
#### Accessing the UI
|
|
|
Dashboard requires a Bearer-token to access it for security reasons. To generate the token, we need to create a SeviceAccount and bind it to a cluster-admin role, which will give it privileges to generate the token. Detailed guide is available [here](https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md). We then need to use the command ```kubectl proxy``` which exposes the k8s API on port 8001 by default. After that, dashboard will be available at http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/. |
|
|
\ No newline at end of file |
|
|
Dashboard requires a Bearer-token to access it for security reasons. To generate the token, we need to create a SeviceAccount and bind it to a cluster-admin role, which will give it privileges to generate the token. Detailed guide is available [here](https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md). We then need to use the command ```kubectl proxy``` which exposes the k8s API on port 8001 by default. After that, dashboard will be available at http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/.
|
|
|
|
|
|
#### Preview
|
|
|
![image](uploads/1c0c8d9b4ee98081d94f77388ac7eaab/image.png)
|
|
|
*Cluster overview*
|
|
|
![image](uploads/bb29daae555b527448b9666167b061ee/image.png)
|
|
|
*Minikube node* |
|
|
\ No newline at end of file |