From 097d8dd4ccf8175e3633c2ecb5cb06f5a3494159 Mon Sep 17 00:00:00 2001 From: Shubhag Saxena Date: Mon, 5 Aug 2024 04:59:55 +0530 Subject: [PATCH] Added event-analyzer (#98) * event-analyzer added * added & modified event-analyzer * analyzer message updated --- in-cluster/default.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/in-cluster/default.yaml b/in-cluster/default.yaml index 2835f6b..39b1831 100644 --- a/in-cluster/default.yaml +++ b/in-cluster/default.yaml @@ -468,3 +468,15 @@ spec: message: "There are PVCs using more than 80% of storage: {{ .PVC.ConcatenatedNames }}" - pass: message: "No PVCs are using more than 80% of storage" + - event: + checkName: event-oom-check + namespace: default + reason: "OOMKilling" + kind: Node + outcomes: + - fail: + when: "true" + message: Event {{ .Reason }} by object {{ .InvolvedObject.Name }} kind {{ .InvolvedObject.Kind }} has message {{ .Message }} + - pass: + when: "false" + message: No OOMKilling event detected