Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing HostNetwork Bug #109

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions cmd/k8s-netperf/k8s-netperf.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,11 @@ func executeWorkload(nc config.Config, s config.PerfScenarios, hostNet bool, ipe
serverIP = s.NetperfService.Spec.ClusterIP
}
} else {
serverIP = s.Server.Items[0].Status.PodIP
if hostNet {
serverIP = s.ServerHost.Items[0].Status.PodIP
} else {
serverIP = s.Server.Items[0].Status.PodIP
}
}
if !s.NodeLocal {
Client = s.ClientAcross
Expand Down Expand Up @@ -360,7 +364,7 @@ func executeWorkload(nc config.Config, s config.PerfScenarios, hostNet bool, ipe
npr.AcrossAZ = nc.AcrossAZ
}
npr.StartTime = time.Now()
log.Debugf("Executing workloads. Server on %s client on %s, hostNetwork is %t, service is %t", s.ServerNodeInfo.Hostname, s.ClientNodeInfo.Hostname, hostNet, service)
log.Debugf("Executing workloads. hostNetwork is %t, service is %t", hostNet, service)
for i := 0; i < nc.Samples; i++ {
nr := sample.Sample{}
if iperf3 {
Expand Down
Loading