Skip to content

Commit

Permalink
Merge pull request #96 from replicatedhq/gerard/sc-107874/pvc-check
Browse files Browse the repository at this point in the history
Add PVC check in default spec
  • Loading branch information
nvanthao authored Jul 22, 2024
2 parents a78a7c0 + a92f489 commit 97a9e76
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions in-cluster/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ spec:
collectorName: replicated.app-health-check
get:
url: https://replicated.app/healthz
- nodeMetrics: {}
analyzers:
- deploymentStatus:
checkName: Check EKCO is operational
Expand Down Expand Up @@ -459,3 +460,11 @@ spec:
message: No default storage class found
- pass:
message: Default storage class found
- nodeMetrics:
checkName: Check for PVCs using more than 80% storage 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"

0 comments on commit 97a9e76

Please sign in to comment.