Feature: Add label-driven YurtHub installation controller#2506
Open
SamyakBorkar wants to merge 2 commits intoopenyurtio:masterfrom
Open
Feature: Add label-driven YurtHub installation controller#2506SamyakBorkar wants to merge 2 commits intoopenyurtio:masterfrom
SamyakBorkar wants to merge 2 commits intoopenyurtio:masterfrom
Conversation
This commit implements a Kubernetes-native mechanism for automatically installing and uninstalling YurtHub on edge nodes based on node labels. Key features: - Automatic YurtHub installation when openyurt.io/is-edge-worker=true - Automatic uninstallation when label is removed - Uses Kubernetes Jobs with node-servant for remote installation - Status tracking via node annotations - Configurable via yurt-manager flags - Comprehensive tests and documentation Benefits: - Works on existing K8s nodes without rejoining cluster - Compatible with any K8s management tool - Declarative, label-based management - Supports bulk operations Fixes openyurtio#2494 Signed-off-by: SamyakBorkar <2022bit037@sggs.ac.in>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR implements automatic YurtHub installation/uninstallation based on node labels.
Problem: Currently, YurtHub requires
yurtadm join, which:Solution: New controller that watches for
openyurt.io/is-edge-worker=truelabel and automatically:Usage:
Why this matters:
✅ Works with ANY Kubernetes cluster/management tool
✅ No downtime or cluster rejoining needed
✅ Declarative and Kubernetes-native
✅ Scales to hundreds of nodes easily
Which issue(s) this PR fixes:
Fixes #2494
Special notes for your reviewer:
Implementation highlights:
Documentation:
Testing:
File summary:
Does this PR introduce a user-facing change?
Yes.
This PR introduces a label-driven mechanism that allows users to
automatically install or uninstall YurtHub on edge nodes by applying
or removing a Kubernetes node label.