This repository contains how to setup kube prometheus monitoring with grafana install as part of prometheus deployment. Also includes how to add additional built
STEPS:
- Connect to the cluset using kubeconfig
export KUBECONFIG=/Users/sghosh/k8sConfig.yml
verify the connection
kubectl get nodes
Install helm if not installed
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
- Deploy prometheus with helm chart and kustomize
Promtheus can be depployed in 3 different ways but using helm kube-prometheus-stack simplifies the setup and maintainablity.
kustomize build --enable-helm . | kubectl apply -f - --server-side=true
- With kustomize build and apply
With helm within the Chart directory
helm install test . -f ./values.yaml --namespace test-monitoring --create-namespace