Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
marccampbell committed Feb 6, 2020
1 parent e94b152 commit f15579a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/preflight/node-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,19 @@ spec:
message: This application requires at least 1 node with 16GB available memory
- pass:
message: This cluster has a node with enough memory.
- nodeResources:
checkName: There must be at least 3 nodes in the cluster
outcomes:
- fail:
when: "count() < 3"
message: This application requires at least 3 nodes in the cluster
- pass:
message: This cluster haas sufficient nodes
- nodeResources:
checkName: There must be a total of at least 32Gi of memory on all nodes
outcomes:
- fail:
when: "sum(memoryCapacity) < 32Gi"
message: This application requires that 32Gi or more memory be available to the cluster
- pass:
message: This cluster haas sufficient memory

0 comments on commit f15579a

Please sign in to comment.