I’ve got a pre-flight defined in my kots-preflight.yaml
that checks the number of cores available in a cluster.
- nodeResources:
checkName: Total CPU Cores
outcomes:
- fail:
when: "sum(cpuCapacity) < 10"
message: The cluster does not contain enough cores to run the app.
- warn:
when: "sum(cpuCapacity) < 14"
message: The cluster can run the app, but may run into CPU allocation issues.
- pass:
message: The cluster contains the recommended number of cores.
The check appears to be based on the number of cores currently provisioned, and is failing frequently on auto-scaling clusters that have the ability to scale into the “pass” range. I would like for the test to pass in these scenarios. Is there any way to base this check on the cluster’s scaled-up limit instead of the currently-available core count?