... | @@ -74,4 +74,16 @@ Now we should see our two new targets in Prometheus UI: |
... | @@ -74,4 +74,16 @@ Now we should see our two new targets in Prometheus UI: |
|
![image](uploads/b4b73977c7c83d8bc9b15b5d358c4c27/image.png)
|
|
![image](uploads/b4b73977c7c83d8bc9b15b5d358c4c27/image.png)
|
|
*Grafana showing resource utilization on node*
|
|
*Grafana showing resource utilization on node*
|
|
![image](uploads/1e9b7bf9465720c7e84c06101b2df820/image.png)
|
|
![image](uploads/1e9b7bf9465720c7e84c06101b2df820/image.png)
|
|
*Custom charts* |
|
*Custom charts*
|
|
\ No newline at end of file |
|
|
|
|
|
## Kubernetes Dashboard
|
|
|
|
[Dashboard](https://github.com/kubernetes/dashboard) is a web based UI for displaying as well as managing k8s clusters.It can be used to get an overview of what apps are running on our cluster, but also for creating and configuring existing k8s resources(Deployment, Services)
|
|
|
|
|
|
|
|
#### Installation
|
|
|
|
Using the official [guide](https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/), all we have to do to deploy the dashboard is
|
|
|
|
```bash
|
|
|
|
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml
|
|
|
|
```
|
|
|
|
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 |