Detect crashes in your Kubernetes cluster using kwatch and PagerDuty

In this article you will learn how to setup and deploy kwatch in your Kubernetes (K8s) cluster to monitor and receive real time crash alerts through PagerDuty

Configure PagerDuty

Step 1: Create a new service

Step 2: Gi…


This content originally appeared on DEV Community and was authored by Amgad Ashraf

In this article you will learn how to setup and deploy kwatch in your Kubernetes (K8s) cluster to monitor and receive real time crash alerts through PagerDuty

Configure PagerDuty

Step 1: Create a new service

1

Step 2: Give your service a Name and a Description

2

Step 3: Add an Escalation Policy

3

Step 4: Make sure to add the Events API V2 Integration

4

Step 5: Navigate to your service and copy the Integration Key

5

Configure kwatch

Step 1: Get the configuration template

curl  -L https://raw.githubusercontent.com/abahmed/kwatch/v0.3.0/deploy/config.yaml -o config.yaml

Step 2: Edit config.yaml file and add the Integration Key

apiVersion: v1
kind: Namespace
metadata:
  name: kwatch
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: kwatch
  namespace: kwatch
data:
  config.yaml: |
    alert:
      pagerduty:
        integrationKey: <integration_key>

Step 3: Apply the configuration

kubectl apply -f config.yaml

Deploy kwatch

kubectl apply -f https://raw.githubusercontent.com/abahmed/kwatch/v0.3.0/deploy/deploy.yaml

You will now start receiving PagerDuty alerts whenever there is a pod crash in your Kubernetes (K8s) cluster!
6

You can find more documentation about kwatch Here.
If you like kwatch, give it a star on GitHub!

We are happy to hear feedback from you and if you have any request, or suggestion don’t hesitate to ping us on our channels (Discord, GitHub)


This content originally appeared on DEV Community and was authored by Amgad Ashraf


Print Share Comment Cite Upload Translate Updates
APA

Amgad Ashraf | Sciencx (2022-01-23T12:02:17+00:00) Detect crashes in your Kubernetes cluster using kwatch and PagerDuty. Retrieved from https://www.scien.cx/2022/01/23/detect-crashes-in-your-kubernetes-cluster-using-kwatch-and-pagerduty/

MLA
" » Detect crashes in your Kubernetes cluster using kwatch and PagerDuty." Amgad Ashraf | Sciencx - Sunday January 23, 2022, https://www.scien.cx/2022/01/23/detect-crashes-in-your-kubernetes-cluster-using-kwatch-and-pagerduty/
HARVARD
Amgad Ashraf | Sciencx Sunday January 23, 2022 » Detect crashes in your Kubernetes cluster using kwatch and PagerDuty., viewed ,<https://www.scien.cx/2022/01/23/detect-crashes-in-your-kubernetes-cluster-using-kwatch-and-pagerduty/>
VANCOUVER
Amgad Ashraf | Sciencx - » Detect crashes in your Kubernetes cluster using kwatch and PagerDuty. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/01/23/detect-crashes-in-your-kubernetes-cluster-using-kwatch-and-pagerduty/
CHICAGO
" » Detect crashes in your Kubernetes cluster using kwatch and PagerDuty." Amgad Ashraf | Sciencx - Accessed . https://www.scien.cx/2022/01/23/detect-crashes-in-your-kubernetes-cluster-using-kwatch-and-pagerduty/
IEEE
" » Detect crashes in your Kubernetes cluster using kwatch and PagerDuty." Amgad Ashraf | Sciencx [Online]. Available: https://www.scien.cx/2022/01/23/detect-crashes-in-your-kubernetes-cluster-using-kwatch-and-pagerduty/. [Accessed: ]
rf:citation
» Detect crashes in your Kubernetes cluster using kwatch and PagerDuty | Amgad Ashraf | Sciencx | https://www.scien.cx/2022/01/23/detect-crashes-in-your-kubernetes-cluster-using-kwatch-and-pagerduty/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.