Skip to content

Commit

Permalink
update default spec with pvcs check
Browse files Browse the repository at this point in the history
  • Loading branch information
nvanthao committed Jul 22, 2024
1 parent 5dfb6d5 commit 2c43ac6
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 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"

0 comments on commit 2c43ac6

Please sign in to comment.