Skip to content

Commit

Permalink
[kots]: change the CPU and memory checks to be min not sum
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Emms committed Apr 11, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d1e6e35 commit c4470c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions install/kots/manifests/kots-preflight.yaml
Original file line number Diff line number Diff line change
@@ -103,24 +103,24 @@ spec:
- pass:
message: Cert-manager is installed and available.
- nodeResources:
checkName: Total CPU Cores in the cluster
checkName: CPU Cores per node
outcomes:
- fail:
when: "sum(cpuCapacity) < 2"
when: "min(cpuCapacity) < 2"
message: The cluster must contain at least 2 cores
- warn:
when: "sum(cpuCapacity) < 4"
when: "min(cpuCapacity) < 4"
message: The cluster must contain at least 4 cores
- pass:
message: There are at least 4 cores in the cluster
- nodeResources:
checkName: Total memory in the cluster
checkName: Memory per node
outcomes:
- fail:
when: "sum(memoryCapacity) < 8G"
when: "min(memoryCapacity) < 8G"
message: The cluster must have least 8GB of memory
- warn:
when: "sum(memoryCapacity) < 16G"
when: "min(memoryCapacity) < 16G"
message: The cluster must have least 16GB of memory
- pass:
message: There is at least 16GB of memory in the cluster

0 comments on commit c4470c5

Please sign in to comment.