-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
299f3e0
commit 879c3a6
Showing
6 changed files
with
386 additions
and
653 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: troubleshoot.replicated.com/v1beta1 | ||
kind: Preflight | ||
metadata: | ||
name: sample | ||
spec: | ||
analyzers: | ||
- nodeResources: | ||
checkName: Must have at least 3 nodes in the cluster | ||
outcomes: | ||
- fail: | ||
when: "< 3" | ||
message: This application requires at least 3 nodes | ||
- warn: | ||
when: "< 5" | ||
message: This application recommends at last 5 nodes. | ||
- pass: | ||
message: This cluster has enough nodes. | ||
- nodeResources: | ||
checkName: Must have 3 nodes with at least 6 cores | ||
filters: | ||
cpuCapacity: "6" | ||
outcomes: | ||
- fail: | ||
when: "< 3" | ||
message: This application requires at least 3 nodes with 6 cores each | ||
- pass: | ||
message: This cluster has enough nodes with enough codes | ||
- nodeResources: | ||
checkName: Must have 1 node with 16 GB (available) memory and 5 cores (on a single node) | ||
filters: | ||
allocatableMemory: 16Gi | ||
cpuCapacity: "5" | ||
outcomes: | ||
- fail: | ||
when: "< 1" | ||
message: This application requires at least 1 node with 16GB available memory | ||
- pass: | ||
message: This cluster has a node with enough memory. |
Oops, something went wrong.