mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 00:21:51 -05:00
Each EKS Auto Mode node now has a karpenter.sh/v1 NodeClaim, as Karpenter keeps one on AWS, so kubectl get nodeclaims and tools that watch claims see Auto Mode's nodes. The claim is named after its pool with a five-character suffix, chosen at launch so no other instance's claim has it and kept in the instance's karpenter.sh/nodeclaim tag. It is owned by its NodePool, held by the karpenter.sh/termination finalizer and labelled as its node is. Its spec carries the pool's requirements, its pods' requests, and expireAfter and terminationGracePeriod (336h and 24h0m0s when the pool doesn't say). Its status goes Launched, then Registered, Initialized and Ready once the node joins. A claim whose instance is gone loses Karpenter's finalizer and is deleted, and a missing one is made again without a new launch. Deleting a claim drains and removes its node and terminates its instance, as deleting a pool does. A NodePool being deleted launches nothing more. Only claims labelled app.kubernetes.io/managed-by: eks are touched.