From 2c43ac6341ac73514504265a9566d04a1cdd9537 Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Mon, 22 Jul 2024 16:24:56 +1000 Subject: [PATCH] update default spec with pvcs check --- in-cluster/default.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/in-cluster/default.yaml b/in-cluster/default.yaml index 19af5bb..5b5190b 100644 --- a/in-cluster/default.yaml +++ b/in-cluster/default.yaml @@ -275,6 +275,7 @@ spec: collectorName: replicated.app-health-check get: url: https://replicated.app/healthz + - nodeMetrics: {} analyzers: - deploymentStatus: checkName: Check EKCO is operational @@ -459,3 +460,11 @@ spec: message: No default storage class found - pass: message: Default storage class found + - nodeMetrics: + checkName: Check for PVC usage is less than 80% in the entire cluster + outcomes: + - fail: + when: "pvcUsedPercentage >= 80" + message: "There are PVCs using more than 80% of storage: {{ .PVC.ConcatenatedNames }}" + - pass: + message: "No PVCs are using more than 80% of storage" \ No newline at end of file