mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Merge pull request #90486 from aojea/iperf
Fix e2e network performance test
This commit is contained in:
commit
dca3e3f6ed
@ -72,8 +72,8 @@ func networkingIPerfTest(isIPv6 bool) {
|
|||||||
Containers: []v1.Container{{
|
Containers: []v1.Container{{
|
||||||
Name: "iperf-server",
|
Name: "iperf-server",
|
||||||
Image: imageutils.GetE2EImage(imageutils.Agnhost),
|
Image: imageutils.GetE2EImage(imageutils.Agnhost),
|
||||||
|
Command: []string{"/bin/sh"},
|
||||||
Args: []string{
|
Args: []string{
|
||||||
"/bin/sh",
|
|
||||||
"-c",
|
"-c",
|
||||||
"/usr/local/bin/iperf " + familyStr + "-s -p 8001 ",
|
"/usr/local/bin/iperf " + familyStr + "-s -p 8001 ",
|
||||||
},
|
},
|
||||||
@ -102,8 +102,8 @@ func networkingIPerfTest(isIPv6 bool) {
|
|||||||
{
|
{
|
||||||
Name: "iperf-client",
|
Name: "iperf-client",
|
||||||
Image: imageutils.GetE2EImage(imageutils.Agnhost),
|
Image: imageutils.GetE2EImage(imageutils.Agnhost),
|
||||||
|
Command: []string{"/bin/sh"},
|
||||||
Args: []string{
|
Args: []string{
|
||||||
"/bin/sh",
|
|
||||||
"-c",
|
"-c",
|
||||||
"/usr/local/bin/iperf " + familyStr + "-c service-for-" + appName + " -p 8002 --reportstyle C && sleep 5",
|
"/usr/local/bin/iperf " + familyStr + "-c service-for-" + appName + " -p 8002 --reportstyle C && sleep 5",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user