Panfactum / stack

The Panfactum Stack
https://panfactum.com
Other
16 stars 5 forks source link

[Bug]: Karpenter failng to provision due to invalid node claim #42

Closed mschnee closed 6 months ago

mschnee commented 6 months ago

Prior Search

What happened?

Karpenter is throwing errors attempting to create Node claims.:

creating node claim, NodeClaim.karpenter.sh \"spot-8c7mc\" is invalid: [spec.requirements: Too many: 32: must have at most 30 items, <nil>: Invalid value: \"null\": some validation rules were not checked because the object was invalid; correct the existing errors to complete validation]; creating node claim, NodeClaim.karpenter.sh \"burstable-2l6cf\" is invalid: [spec.requirements: Too many: 33: must have at most 30 items, <nil>: Invalid value: \"null\": some validation rules were not checked because the object was invalid; correct the existing errors to complete validation]

Steps to Reproduce

Working through the bootstrap documentation, when attempting to scale up a service to test Karpenter getting provisioining nodes.

Version

main (development branch)

Relevant log output

{
  "level": "ERROR",
  "time": "2024-05-29T22:07:31.187Z",
  "logger": "controller.provisioner",
  "message": "creating node claim, NodeClaim.karpenter.sh \"burstable-9ns7l\" is invalid: [spec.requirements: Too many: 33: must have at most 30 items, <nil>: Invalid value: \"null\": some validation rules were not checked because the object was invalid; correct the existing errors to complete validation]; creating node claim, NodeClaim.karpenter.sh \"burstable-k4q92\" is invalid: [spec.requirements: Too many: 33: must have at most 30 items, <nil>: Invalid value: \"null\": some validation rules were not checked because the object was invalid; correct the existing errors to complete validation]; creating node claim, NodeClaim.karpenter.sh \"spot-qvhz8\" is invalid: [spec.requirements: Too many: 32: must have at most 30 items, <nil>: Invalid value: \"null\": some validation rules were not checked because the object was invalid; correct the existing errors to complete validation]",
  "commit": "8b2d1d7"
}

{
  "level": "ERROR",
  "time": "2024-05-29T22:07:35.510Z",
  "logger": "controller.provisioner",
  "message": "creating node claim, NodeClaim.karpenter.sh \"spot-8c7mc\" is invalid: [spec.requirements: Too many: 32: must have at most 30 items, <nil>: Invalid value: \"null\": some validation rules were not checked because the object was invalid; correct the existing errors to complete validation]; creating node claim, NodeClaim.karpenter.sh \"burstable-2l6cf\" is invalid: [spec.requirements: Too many: 33: must have at most 30 items, <nil>: Invalid value: \"null\": some validation rules were not checked because the object was invalid; correct the existing errors to complete validation]",
  "commit": "8b2d1d7"
}
fullykubed commented 6 months ago

I believe you are referencing this guide section where it asks you to scale cert-manager to 25 replicas to validate that Karpenter is working properly.

That guide section has unfortunately become out-of-date which I believe caused confusion:

I will update the edge documentation to correct these errors.

fullykubed commented 6 months ago

The documentation has been updated.