Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.1 KB

File metadata and controls

29 lines (20 loc) · 1.1 KB

Kubernetes 1.18.4 Monitoring Guide

Create a cluster with kind

kind create cluster --name prometheus --image kindest/node:v1.18.4
kubectl create ns monitoring

# Create the operator to instanciate all CRDs
kubectl -n monitoring apply -f ./monitoring/prometheus/kubernetes/1.18.4/prometheus-operator/

# Deploy monitoring components
kubectl -n monitoring apply -f ./monitoring/prometheus/kubernetes/1.18.4/node-exporter/
kubectl -n monitoring apply -f ./monitoring/prometheus/kubernetes/1.18.4/kube-state-metrics/
kubectl -n monitoring apply -f ./monitoring/prometheus/kubernetes/1.18.4/alertmanager

# Deploy prometheus instance and all the service monitors for targets
kubectl -n monitoring apply -f ./monitoring/prometheus/kubernetes/1.18.4/prometheus-cluster-monitoring/

# Dashboarding
kubectl -n monitoring create -f ./monitoring/prometheus/kubernetes/1.18.4/grafana/

Sources

The source code for monitoring Kubernetes 1.18.4 comes from the kube-prometheus v0.6.0 tree