From f15579a3b294bb1a179cbb2732f34fdc6d36ea48 Mon Sep 17 00:00:00 2001 From: Marc Campbell Date: Thu, 6 Feb 2020 23:10:40 +0000 Subject: [PATCH] Update example --- examples/preflight/node-resources.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/examples/preflight/node-resources.yaml b/examples/preflight/node-resources.yaml index 50d7e2cd..8abeb3d3 100644 --- a/examples/preflight/node-resources.yaml +++ b/examples/preflight/node-resources.yaml @@ -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