Changes between Version 2 and Version 3 of k8smonitoring2023


Ignore:
Timestamp:
Dec 8, 2023, 3:27:58 PM (5 months ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • k8smonitoring2023

    v2 v3  
    1 '''Monitoring'''
     1== Monitoring ==
    22Install helm3 on master node
    33
     
    2121Create Prometheus namespace
    2222
    23 `kubectl create namespace Prometheus`
     23`kubectl create namespace prometheus`
    2424
    2525Install kube-prometheus-stack
     
    2727Below is the helm command to install kube-prometheus-stack. This installation formally called prometheus-operator also comes with a grafana deployment embedded.
    2828
    29 `helm install stable prometheus-community/kube-prometheus-stack -n Prometheus`
     29`helm install stable prometheus-community/kube-prometheus-stack -n prometheus`
    3030
    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 }}}
     31In order to make prometheus and grafana available outside the cluster, use !NodePort or !LoadBalancer instead of !ClusterIP.
    3632
    37 Search type: LoadBalancer and change it to type: NodePort.
     33Search `type: ClusterIP` and change it to `type: NodePort` on
     34
     35`kubectl edit svc stable-kube-prometheus-sta-prometheus -n prometheus`
     36
     37and
     38 
     39`kubectl edit svc stable-grafana -n prometheus`
     40
     41
     42
    3843
    3944{{{
    40 kubectl get svc -n prometheus NAME
     45kubectl get svc -n prometheus
    4146
    4247
    4348}}}
    4449
    45 log into stable-grafana from your PC. Use node port. Username/Password: admin / prom-operator
     50log into stable-grafana from your PC. Use node port. !Username/Password: `admin` / `prom-operator`
    4651
    47 '''How to Create Kubernetes Monitoring Dashboard?'''
     52
     53== How to Create Kubernetes Monitoring Dashboard? ==
    4854
    4955For creating a dashboard to monitor the cluster: