Skip to content

Commit 97a9e76

Browse files
authored
Merge pull request #96 from replicatedhq/gerard/sc-107874/pvc-check
Add PVC check in default spec
2 parents a78a7c0 + a92f489 commit 97a9e76

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

in-cluster/default.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ spec:
275275
collectorName: replicated.app-health-check
276276
get:
277277
url: https://replicated.app/healthz
278+
- nodeMetrics: {}
278279
analyzers:
279280
- deploymentStatus:
280281
checkName: Check EKCO is operational
@@ -459,3 +460,11 @@ spec:
459460
message: No default storage class found
460461
- pass:
461462
message: Default storage class found
463+
- nodeMetrics:
464+
checkName: Check for PVCs using more than 80% storage in the entire cluster
465+
outcomes:
466+
- fail:
467+
when: "pvcUsedPercentage >= 80"
468+
message: "There are PVCs using more than 80% of storage: {{ .PVC.ConcatenatedNames }}"
469+
- pass:
470+
message: "No PVCs are using more than 80% of storage"

0 commit comments

Comments
 (0)