Changes between Version 2 and Version 3 of k8smonitoring2023
- Timestamp:
- Dec 8, 2023, 3:27:58 PM (12 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
k8smonitoring2023
v2 v3 1 '''Monitoring''' 1 == Monitoring == 2 2 Install helm3 on master node 3 3 … … 21 21 Create Prometheus namespace 22 22 23 `kubectl create namespace Prometheus`23 `kubectl create namespace prometheus` 24 24 25 25 Install kube-prometheus-stack … … 27 27 Below is the helm command to install kube-prometheus-stack. This installation formally called prometheus-operator also comes with a grafana deployment embedded. 28 28 29 `helm install stable prometheus-community/kube-prometheus-stack -n Prometheus`29 `helm install stable prometheus-community/kube-prometheus-stack -n prometheus` 30 30 31 In order to make prometheus and grafana available outside the cluster, use NodePort instead of ClusterIP. 32 {{{ 33 kubectl edit svc stable-kube-prometheus-sta-prometheus -n Prometheus 34 kubectl edit svc stable-grafana -n Prometheus 35 }}} 31 In order to make prometheus and grafana available outside the cluster, use !NodePort or !LoadBalancer instead of !ClusterIP. 36 32 37 Search type: LoadBalancer and change it to type: NodePort. 33 Search `type: ClusterIP` and change it to `type: NodePort` on 34 35 `kubectl edit svc stable-kube-prometheus-sta-prometheus -n prometheus` 36 37 and 38 39 `kubectl edit svc stable-grafana -n prometheus` 40 41 42 38 43 39 44 {{{ 40 kubectl get svc -n prometheus NAME45 kubectl get svc -n prometheus 41 46 42 47 43 48 }}} 44 49 45 log into stable-grafana from your PC. Use node port. Username/Password: admin / prom-operator50 log into stable-grafana from your PC. Use node port. !Username/Password: `admin` / `prom-operator` 46 51 47 '''How to Create Kubernetes Monitoring Dashboard?''' 52 53 == How to Create Kubernetes Monitoring Dashboard? == 48 54 49 55 For creating a dashboard to monitor the cluster: