mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-25 06:04:18 +09:00
## What this PR does Adds optional node-lifecycle-controller component to local-ccm package that automatically deletes unreachable NotReady nodes from the cluster. This solves the problem of "zombie" node objects left behind when cluster autoscaler deletes cloud instances but the node object remains in Kubernetes. **Features:** - Monitors nodes matching a configurable label selector - Deletes nodes that are NotReady for configurable duration (default: 5m) - Verifies unreachability via ICMP ping before deletion - Supports protected labels to prevent deletion of specific nodes - Leader election for HA deployment **Usage:** ```yaml nodeLifecycleController: enabled: true nodeSelector: "node.kubernetes.io/instance-type" # optional protectedLabels: "kilo.squat.ai/leader" # optional ``` Disabled by default. ### Release note ```release-note [local-ccm] Add optional node-lifecycle-controller to automatically cleanup unreachable NotReady nodes ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Introduced optional Node Lifecycle Controller component for managing node readiness states with configurable timeouts, health monitoring, and reconciliation intervals. Supports leader election, dry-run modes, and customizable node selectors and protected labels for operational flexibility. Disabled by default. <!-- end of auto-generated comment: release notes by coderabbit.ai -->