Add a label which prevents a node from being added to a cloud load balancer.

This commit is contained in:
Brendan Burns
2017-09-27 10:13:02 -07:00
parent 751bcc473c
commit 422f5e37b9
2 changed files with 8 additions and 0 deletions

View File

@@ -598,6 +598,10 @@ func getNodeConditionPredicate() corelisters.NodeConditionPredicate {
return false
}
if _, hasExcludeBalancerLabel := node.Labels[constants.LabelNodeRoleExcludeBalancer]; hasExcludeBalancerLabel {
return false
}
// If we have no info, don't accept
if len(node.Status.Conditions) == 0 {
return false