From d57b9241c441a78a27da111042f5fe1438880bfb Mon Sep 17 00:00:00 2001 From: Shubhag Saxena Date: Mon, 2 Sep 2024 09:52:00 +0530 Subject: [PATCH] feat: add OOMKilled and Default Storage Class analysers (#4852) --- .../staticspecs/defaultspec.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pkg/supportbundle/staticspecs/defaultspec.yaml b/pkg/supportbundle/staticspecs/defaultspec.yaml index 73182bda61..b1f2c8a843 100644 --- a/pkg/supportbundle/staticspecs/defaultspec.yaml +++ b/pkg/supportbundle/staticspecs/defaultspec.yaml @@ -143,3 +143,22 @@ spec: message: "kotsadm-minio PVC using more than 80% of storage" - pass: message: "kotsadm-minio PVC is using less 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 + - storageClass: + checkName: Check for default storage class + outcomes: + - fail: + message: No default storage class found + - pass: + message: Default storage class found