Ensure label node.kubernetes.io/exclude-from-external-load-balancers is added to virtual node

This commit is contained in:
Pengfei Ni
2020-11-13 13:16:23 +08:00
parent 05e9aa2858
commit 5f1a53c580

View File

@@ -344,6 +344,7 @@ func (p *MockProvider) ConfigureNode(ctx context.Context, n *v1.Node) {
n.Status.NodeInfo.OperatingSystem = os
n.Status.NodeInfo.Architecture = "amd64"
n.ObjectMeta.Labels["alpha.service-controller.kubernetes.io/exclude-balancer"] = "true"
n.ObjectMeta.Labels["node.kubernetes.io/exclude-from-external-load-balancers"] = "true"
}
// Capacity returns a resource list containing the capacity limits.