-
Notifications
You must be signed in to change notification settings - Fork 4k
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
HETZNER - Custom Labels on scaled nodes #4604
Comments
Documentation is not fantastic but you can already scale up based on The only downside is: it's not based on Kubernetes labels but Hetzner node labels, so you can't scale up on custom Kubernetes labels affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: hcloud/node-group
operator: In
values:
- pool1 |
Thank you for this information. But how would I do the following: PROJECT X tells me, that the compontents only get schedules on Nodes with specific labels. Lets call the labels: L1, L2, L3 should never be on the same node. Now a pod wants to get scheduled and requires the L2 tag. As you mentioned above, it is not "custom Kubernetes labels". If I do not know which label the node has, I can not change something in the setup process. Cluster Autoscaler would know, but not the server itself. |
Unfortunately I am not there yet, the only thing I can do is trigger different nodepool scale up/down and sometimes it just don't so yeah |
Well I give up and I will just label my node with cloud-init based on hostname first part with this |
If I'm not mistaken, this is where the labels are added. The Labels field was just left empty instead of passing in the values. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale I'm experiencing this as well, and would love a way to attach kubernetes node labels to provisioned nodes. I'll see if I can borrow some code from other cloud-providers, since I'm not very proficient in go |
I need to target the Load Balancer to scaled nodes, is this possible without custom labels support ? |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
Also facing this issue, adding a +1 |
Hi everyone, I was unclear whether this is about the labels for Hetzner Cloud Servers or the labels for Kubernetes Nodes. The scheduling constraint appears to be related to Node labels, while the load balancer target request requires Server labels. Server LabelsCurrently, we only specify the label Node LabelsUnfortunately, the cluster-autoscaler cloud provider cannot make changes to Node labels. These labels are added from other cluster components (e.g., Custom Node labels can be specified when using kubeadm/kubelet by utilizing the |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
As of #6184 it will be possible to specify to the Cluster-Autoscaler which additional Node Labels for use in Kubernetes are added to the Nodes in the cloud-init config. /area provider/hetzner |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
No one has clearly requested Server Labels for the last year, and there is now an option to add Node Labels. I think we can consider this closed until someone comes with a request for the Server Labels. /close |
@apricote: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Which component are you using?:
Hetzner
Is your feature request designed to solve a problem? If so describe the problem this feature should solve.:
More and more developers decide to let their more and more complex solutions run on kubernetes and in order for them to spot a place to run, need labels on them. (Affinity)
With adding the possibility to add multiple (n) custom labels to the
--nodes=
that will get applied on a scale event, that would be great. Also, the node pool could be selected / preffered if the labels match the ones of the pod.Describe the solution you'd like.:
--nodes=1:10:CPX21:FSN1:pool1:[abc.io/services]
--nodes=1:10:CPX51:FSN1:pool1:[abc.io/services,abc.io/regular]
The selection of the nodepool would look if [label...] is present and select based on this; scale up would add these labels to the node.
Describe any alternative solutions you've considered.:
Working with prebuilt images, but the cluster autoscaler can not differentiate.
The text was updated successfully, but these errors were encountered: