mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 16:35:29 -05:00
The node lifecycle controller marked every node Floci registers for a joined instance Unknown once node-monitor-grace-period had passed (40 seconds up to Kubernetes 1.31, 50 from 1.32), tainted it unreachable and evicted its pods, since no kubelet renewed its Lease. Every 10 seconds, as a kubelet does, Floci now renews each running instance's node Lease in kube-node-lease, owned by the node and 40 seconds long, and posts Ready again for a node the controller marked not Ready. A stopped instance's node is not renewed, so it goes not Ready as on EKS. The renewal runs on a scheduler of its own, apart from the readiness poller, with each cluster on its own thread, so a slow API server delays no other cluster's heartbeat, and a sweep that throws is logged without ending the schedule. The kubectl apply command is now built once, by EksClusterManager.kubectlApply.