mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Half the no. of endpoints in load test
This commit is contained in:
parent
6d3f5b75f5
commit
3768d8a9a3
@ -535,8 +535,11 @@ func GenerateConfigsForGroup(
|
|||||||
MemRequest: 26214400, // 25MB
|
MemRequest: 26214400, // 25MB
|
||||||
SecretNames: secretNames,
|
SecretNames: secretNames,
|
||||||
ConfigMapNames: configMapNames,
|
ConfigMapNames: configMapNames,
|
||||||
// Define a label to group every 2 RCs into one service.
|
}
|
||||||
Labels: map[string]string{svcLabelKey: groupName + "-" + strconv.Itoa((i+1)/2)},
|
|
||||||
|
// Add a label to alternate RCs, to include only half of them in services.
|
||||||
|
if i%2 == 0 {
|
||||||
|
baseConfig.Labels = map[string]string{svcLabelKey: groupName + "-" + strconv.Itoa(i/2)}
|
||||||
}
|
}
|
||||||
|
|
||||||
if kind == randomKind {
|
if kind == randomKind {
|
||||||
|
Loading…
Reference in New Issue
Block a user