Trying out minikube + prometheus + alert manager + telegram bot integration
Commands in order to setup:
minikube start
eval $(minikube docker-env)
docker build -t unhealthy-express:0.0.1 .
kubectl create namespace apps
kubectl apply -f ./k8s/pod.yml
kubectl create namespace monitoring
kubectl create -f ./prometheus/clusterRole.yaml
kubectl create -f ./prometheus/config-map.yaml
kubectl create -f ./prometheus/prometheus-deployment.yaml
kubectl create -f ./prometheus/prometheus-service.yaml --namespace=monitoring
kubectl create -f ./alert-manager/AlertManagerConfigmap.yaml
kubectl create -f ./alert-manager/AlertTemplateConfigMap.yaml
kubectl create -f ./alert-manager/Deployment.yaml
kubectl create -f ./alert-manager/Service.yaml
kubectl create -f ./node-exporter/daemonset.yml
kubectl create -f ./alert-manager/service.yml
kubectl create clusterrolebinding permissive-binding --clusterrole=cluster-admin --user=admin --user=kubelet --group=system:serviceaccounts