k8s-api-microsvc-app-monitoring / commands.txt
commands.txt
Raw
kubectl apply -f app/api-secret.yaml

kubectl apply -f app/microsvc.yaml

kubectl apply app/cluster-autoscaler.yaml

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts

helm repo update

kubectl create namespace monitoring

helm install monitoring prometheus-community/kube-prometheus-stack -n monitoring

kubectl apply -f monitoring/email-secret.yaml

kubectl apply -f monitoring/alert-rules-config.yaml

kubectl apply -f monitoring/alert-manager-config.yaml

kubectl apply -f monitoring/backend-rules-config.yaml

kubectl apply -f monitoring/backend-alert-config.yaml