-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify node label on node join #202
Comments
I'm working on a PR on this and #209 |
Nice!! We are working it around in KubeNow at the moment https://github.com/kubenow/KubeNow/blob/master/bootstrap/node.sh |
@fabriziopandini How do you envision fixing this? We have to take authorization/authentication aspects into account, and they will be/are very tricky. I'd just say that still the best approach:
Also, right now, I'd like to keep the line between kubeadm join and kubelet clean. cc @jbeda @timothysc @pipejakob @mikedanese thoughts? |
@luxas, I started to explore an approach similar to taint and labeling for master nodes, but of course I can switch to the drop-in approach if the second one is preferred. Apart from athentication and authorizatio, another potentially tricky area I see so far is the idenfication of the node name picked up by kubelet... |
@luxas, I'm checking the drop-in option, and it seems that label and taints created by kubelet are applied only at node join (and thus not enforced at every node/kubelet restart). This behaviour is more than fine for me. what do you think about? The last point to be verified on this approach is how to issue a systemctl daemon-reload command if the kubelet service is already running. Any suggestion here? (possible solution improve util\initsystem package, which is outside of cmd\kubeadm folder...) |
@fabianofranz Is there a PR that you wanted to get for 1.7? |
I think that was for @fabriziopandini ;) |
@timothysc this PR for me is eligible for 1.7, but it mostly depends by the agreement on the discussion above (I implemented @luxas suggested approach, but I'm not sure ifor there is convergence on it) |
I was informed about a new PER dynamic kubelet configuration, currently in alpha - rif #46254. This will provide a cleaner solution than relying on file system/dropins. I will have a look and this and discuss the proposal in sig meetings |
@fabriziopandini Did we reach consensus on the design for this? It seems that if we add this functionality to
so maybe this is just a case of waiting for #28 to land? |
@jamiehannaford from my understanding the solution based on the drop-in file was discarded in favor to option 3, use dynamic kubelet configuration (this is why I closed #46506 back in May). However, now that I'm going through this thread after some times, I don't se nothing against 2 as well (in fact this is what we are already doing for mark-master). WDYT? PS. this PR overlaps with #486 |
@fabriziopandini I've added it to tomorrow's meeting notes, let's discuss with everyone then :) |
I think that there is work ongoing in SIG-Auth to lock this down a bit. As a security measure, nodes may not be able to set their own labels. This might be something we can bundle into the token but that is getting a bit messy. I don't have all the details paged in here though. |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
/remove-lifecycle stale |
Any news on this? |
Should be possible once kubernetes/kubernetes#57224 lands I think |
kubernetes/kubernetes#57224 landed, closing. Also as mentioned there exists multiple operator work-arounds for this. |
@luxas what if my system (official AWS EKS image) doesn't have Thanks. |
@cjbottaro
|
For reference if you need to do this on unmanaged eks node pool (created wit a cloudformation template), you will need to update the |
Hi! After reading the docs for kubeadm, and asking in the Slack channel, I figured out that there isn't yet a node join option that allows to specify node labels. This would be very useful when using terraform with kubeadm (e.g. https://github.com/kubenow/KubeNow/blob/master/bootstrap/node.sh#L11), as we could scale the cluster with a single command, without having to run kubectl afterwards to label the new nodes.
P.S. if you could point me to the parts that need to be modified, I can try to contribute to get this in kubeadm 🙂
The text was updated successfully, but these errors were encountered: