This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[Feature Request]: Add ability to apply labels to individual nodes in a nodepool #903
Labels
enhancement
New feature or request
Description
In #894 there is a discussion around node pool limits. While originally thought to be 255 it turns out to be 50 due to Hetzner's limits on subnets.
This is problematic for those who scale their services via nodepools instead of nodes as we now have much lower limits than originally anticipated. I for example add additional node pools to allow me to add labels and then the labels are used to associate a deployment. E.g.:
In the above example I deploy to nodes with the label
cluster=a1
which allows me to create a geographically dispersed HA cluster for a particular deployment and be able to target pods at particular sets of nodes. Being able to target pods at particular nodes is important for my services, as is those sets being geographically dispersed.For a second deployment on different nodes, I add additional nodepools with labels for a second cluster:
Ideally, we would be able to increase the
count
on each pool to add additional nodes and that way we do not hit the limit of 50 nodepools. But when scaling nodes viacount
there is no means of adding labels to the new nodes, and therefore no way to target pods at a particular set of nodes.I think being able to add labels to nodes within nodepools would be a useful feature to overcome this. It could look something like this:
These could then be deprovisioned like this, assuming we need to set to
0
rather than change the length of the count when deprovisioning (maybe that's only a nodepool thing):It would be nice if this then allows us more control over the node labelling. It currently looks something like:
k3s
is customisable via the config file and can be disabled.mynodename
is set vianame
in theagent_nodepool
.epo
seems to be a random three letter code to distinguish each node.It would be nice to be able to add identifiers to the nodes within each pool too, so either
name
in the item within thecount
array replacesepo
and theterraform apply
checks for unique values, or we add that name in addition to the random three letters:It wouldn't mean we would be able to use 255 node pools as originally thought but permits a similar effect and have more control over the nodes.
The text was updated successfully, but these errors were encountered: