openyurtio / openyurt

OpenYurt - Extending your native Kubernetes to edge(project under CNCF)
https://openyurt.io
Apache License 2.0
1.68k stars 391 forks source link

[feature request] Add nodepool flag when joining node with yurtadm #2041

Open luc99hen opened 2 months ago

luc99hen commented 2 months ago

What would you like to be added: Add a nodepool flag to yurtadm join command, yurtadm join --nodepool=xxxx

Why is this needed: Currently, joining nodes and subsequently labeling them with the nodepool label is a tedious process. The nodepool label is crucial for numerous OpenYurt features pertaining to nodepool management. We can combine those two steps into one with this feature. Additionally, we can mandate the --nodepool flag for yurtadm join command.

others /kind feature