๐Ÿš€ Enhancing Kubernetes Monitoring & Automation with Robusta! ๐Ÿš€

Naren PNaren P
2 min read

Find a comprehensive setup for Kubernetes monitoring, notifications, troubleshooting, and automation using Robusta. This powerful tool integrates seamlessly with Prometheus, enabling real-time monitoring and instant alerts via Slack and Robusta UI.

Key Highlights:

  • Deployed a Kubernetes cluster and Prometheus stack.

  • Integrated Slack for instant alert notifications in the #devops channel.

  • Set up Robusta for advanced monitoring and automated issue resolution.

  • Monitoring has never been easier or more effective. Excited to see how this enhances our DevOps processes! ๐Ÿ’ป๐Ÿ”ง

#Kubernetes #DevOps #Monitoring #Automation #Robusta #Prometheus #CloudNative

Prerequisites:

  1. Workspace must have Docker, Helm, Kubectl installed

  2. Kubernetes Cluster

  3. A Prometheus installation

  4. Set up a Sink

Install a Kind Cluster:

 kind create cluster --name=robusta-demo

Setup of Prometheus Stack:

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts && helm repo update
cat<<EOF >robusta-demo-values.yaml
prometheus: # collect rules from all namespaces and ignore label filters
    ruleNamespaceSelector: {}
    ruleSelector: {}
    ruleSelectorNilUsesHelmValues: false
defaultRules: # those rules are now managed by Robusta
    rules:
      alertmanager: false
      etcd: false
      configReloaders: false
      general: false
      kubeApiserverSlos: false
      kubeControllerManager: false
      kubeProxy: false
      kubernetesApps: false
      kubernetesResources: false
      kubernetesStorage: false
      kubernetesSystem: false
      kubeSchedulerAlerting: false
      kubeStateMetrics: false
      network: false
      nodeExporterAlerting: false
      prometheus: false
      prometheusOperator: false
EOF

helm upgrade --install prometheus prometheus-community/kube-prometheus-stack -f robusta-demo-values.yaml --namespace monitoring --create-namespace

more

Setup the Sink

  • Slack Channel Name: devops

  • Google/Gmail/Azure/Outlook address: XXX.YYYY@gmail.com

  • Account: naren4biz

curl -fsSL -o robusta https://docs.robusta.dev/master/_static/robusta
chmod +x robusta
./robusta gen-config --no-enable-prometheus-stack --cluster-name=robusta-demo --slack-channel=devops

image

Install Robusta forwarder & Runner:

helm repo add robusta https://robusta-charts.storage.googleapis.com && helm repo update
helm upgrade --install robusta robusta/robusta -f ./generated_values.yaml --set clusterName=robusta-demo --set isSmallCluster=true --set enabledManagedConfiguration=true

Let's Deploy a crash pod:

kubectl apply -f https://gist.githubusercontent.com/robusta-lab/283609047306dc1f05cf59806ade30b6/raw

Check the Channel:

My Slack: My Slack

Check the Robusta UI

My Account: Robusta-UI

0
Subscribe to my newsletter

Read articles from Naren P directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Naren P
Naren P