From c23e4f24d6ea4bfaded2f0735d8dc2dc157757c9 Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Mon, 22 Jul 2024 15:28:01 +1000 Subject: [PATCH 1/6] 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..49b4df9 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" From 5dfb6d5c4a29aaeaa4982e59cbe98398120c025a Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Mon, 22 Jul 2024 15:31:35 +1000 Subject: [PATCH 2/6] update default spec with pvcs check --- in-cluster/default.yaml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/in-cluster/default.yaml b/in-cluster/default.yaml index 49b4df9..19af5bb 100644 --- a/in-cluster/default.yaml +++ b/in-cluster/default.yaml @@ -275,7 +275,6 @@ spec: collectorName: replicated.app-health-check get: url: https://replicated.app/healthz - - nodeMetrics: {} analyzers: - deploymentStatus: checkName: Check EKCO is operational @@ -460,11 +459,3 @@ 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" From 2c43ac6341ac73514504265a9566d04a1cdd9537 Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Mon, 22 Jul 2024 16:24:56 +1000 Subject: [PATCH 3/6] 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 From 2875c3137823dcbb10c02a89218d8bd43f708303 Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Mon, 22 Jul 2024 16:26:55 +1000 Subject: [PATCH 4/6] lint fix --- in-cluster/default.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/in-cluster/default.yaml b/in-cluster/default.yaml index 5b5190b..b893d83 100644 --- a/in-cluster/default.yaml +++ b/in-cluster/default.yaml @@ -467,4 +467,5 @@ spec: 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 + message: "No PVCs are using more than 80% of storage" + \ No newline at end of file From c68b8977b1b8c752f50277cf218b8f63bd305434 Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Mon, 22 Jul 2024 16:41:34 +1000 Subject: [PATCH 5/6] lint fix --- in-cluster/default.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/in-cluster/default.yaml b/in-cluster/default.yaml index b893d83..49b4df9 100644 --- a/in-cluster/default.yaml +++ b/in-cluster/default.yaml @@ -468,4 +468,3 @@ spec: 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 From a92f489c9d42774993a999ddd7b2a10b3606def4 Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Tue, 23 Jul 2024 08:26:39 +1000 Subject: [PATCH 6/6] Update in-cluster/default.yaml Co-authored-by: Evans Mungai --- in-cluster/default.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/in-cluster/default.yaml b/in-cluster/default.yaml index 49b4df9..2835f6b 100644 --- a/in-cluster/default.yaml +++ b/in-cluster/default.yaml @@ -461,7 +461,7 @@ spec: - pass: message: Default storage class found - nodeMetrics: - checkName: Check for PVC usage is less than 80% in the entire cluster + checkName: Check for PVCs using more than 80% storage in the entire cluster outcomes: - fail: when: "pvcUsedPercentage >= 80"