You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for controller node labels on Bare-Metal #1092
In many use cases, the controller nodes are not used to schedule/host services and can be omitted from advertisement on external load balancers. This is easy enough to do by adding the node.kubernetes.io/exclude-from-external-load-balancers=true label to all controller nodes but is an extra step after deployment..
Steps to Reproduce
Provide clear steps to reproduce the bug.
Select a Bare-Metal deployment option
Observe that there is no option to specify labels for controller nodes
Expected behavior
Available option to set controller node labels.
Environment
Platform: bare-metal
OS: All
Release: Any
Terraform: Any
Plugins: Any
Possible Solution
Create a new configuration option called controller_node_labels for bare-metal deployments.
Can you elaborate on the software you're using? Typically you can use BGP or ECMP to balance traffic across nodes. There is no reason traffic needs (or even should) go to Kubernetes controller nodes.
This is through calico which goes across all nodes. It is then combo'd with metallb to provide a local load balance address. While this can be avoided by not peering the controller nodes on the router side over BGP, it is still good practice to inform calico that the controller nodes should not be advertised to begin with per the documentation.
Allowing clients to add labels on the controller nodes would resolve this. You could also add node.kubernetes.io/exclude-from-external-load-balancers=true to controller nodes created through typhoon but it seems a bit excessive to not permit the feature.
This would allow users to specify labels for controller nodes during the deployment process. The syntax for the configuration option could look like this:
This solution would allow users to easily exclude controller nodes from external load balancers during the deployment process, eliminating the need for manual labeling after deployment. The addition of this configuration option would improve the usability and efficiency of the bare-metal deployment process.
I manage a complex system with Cilium and always have to manually set labels on my controllers nodes to populate BGP and other direct routing configs. Would be good to be able to set labels on controllers.
Activity
dghubble commentedon Dec 28, 2021
Can you elaborate on the software you're using? Typically you can use BGP or ECMP to balance traffic across nodes. There is no reason traffic needs (or even should) go to Kubernetes controller nodes.
Elegant996 commentedon Jan 4, 2022
This is through
calicowhich goes across all nodes. It is then combo'd withmetallbto provide a local load balance address. While this can be avoided by not peering the controller nodes on the router side over BGP, it is still good practice to informcalicothat the controller nodes should not be advertised to begin with per the documentation.Allowing clients to add labels on the controller nodes would resolve this. You could also add
node.kubernetes.io/exclude-from-external-load-balancers=trueto controller nodes created through typhoon but it seems a bit excessive to not permit the feature.Thanks!
prvnmali2017 commentedon Feb 9, 2023
This would allow users to specify labels for controller nodes during the deployment process. The syntax for the configuration option could look like this:
makefile
controller_node_labels = {
"node.kubernetes.io/exclude-from-external-load-balancers" = "true"
}
This solution would allow users to easily exclude controller nodes from external load balancers during the deployment process, eliminating the need for manual labeling after deployment. The addition of this configuration option would improve the usability and efficiency of the bare-metal deployment process.
kalmufti commentedon Mar 28, 2024
I manage a complex system with Cilium and always have to manually set labels on my controllers nodes to populate BGP and other direct routing configs. Would be good to be able to set labels on controllers.