An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
January 23, 2022 12:02 pm GMT
Step 2: Edit
Original Link: https://dev.to/amgadramses/detect-crashes-in-your-kubernetes-cluster-using-kwatch-and-pagerduty-6p8
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: Give your service a Name and a Description
Step 3: Add an Escalation Policy
Step 4: Make sure to add the Events API V2 Integration
Step 5: Navigate to your service and copy the Integration Key
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: v1kind: Namespacemetadata: name: kwatch---apiVersion: v1kind: ConfigMapmetadata: name: kwatch namespace: kwatchdata: 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!
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 dont hesitate to ping us on our channels (Discord, GitHub)
Original Link: https://dev.to/amgadramses/detect-crashes-in-your-kubernetes-cluster-using-kwatch-and-pagerduty-6p8
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To