mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-20 09:33:52 +00:00
Fix labels for spreading benchmark
Nodes where being created with beta zone label, whereas the service was using stable. Change-Id: I08ba1b6c083217759524236bde3888e527b4a44f
This commit is contained in:
@@ -44,7 +44,7 @@ func MakeNodesAndPodsForEvenPodsSpread(labels map[string]string, existingPodsNum
|
||||
// build nodes
|
||||
for i := 0; i < allNodesNum; i++ {
|
||||
node := MakeNode().Name(fmt.Sprintf("node%d", i)).
|
||||
Label(v1.LabelZoneFailureDomain, fmt.Sprintf("zone%d", i%zones)).
|
||||
Label(v1.LabelZoneFailureDomainStable, fmt.Sprintf("zone%d", i%zones)).
|
||||
Label(v1.LabelHostname, fmt.Sprintf("node%d", i)).Obj()
|
||||
allNodes = append(allNodes, node)
|
||||
}
|
||||
|
Reference in New Issue
Block a user