From b55e6f2cd02ae3c752926fd21db3f29160ac8561 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Mon, 20 Sep 2021 09:54:23 +0200 Subject: [PATCH] avoid hostNetwork pods conflict binding UDP ports The agnhost pods using netexec will bind by default to the UDP port 8081, use a different port for hostNetwork pods to avoid scheduling conflicts and fail the tests. --- test/e2e/network/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/network/service.go b/test/e2e/network/service.go index 786d64e9e6e..573fc30e391 100644 --- a/test/e2e/network/service.go +++ b/test/e2e/network/service.go @@ -2235,7 +2235,7 @@ var _ = common.SIGDescribe("Services", func() { framework.ExpectNoError(err) ginkgo.By("Creating 1 webserver pod to be part of the TCP service") - webserverPod0 := e2epod.NewAgnhostPod(ns, "echo-hostname-0", nil, nil, nil, "netexec", "--http-port", strconv.Itoa(endpointPort)) + webserverPod0 := e2epod.NewAgnhostPod(ns, "echo-hostname-0", nil, nil, nil, "netexec", "--http-port", strconv.Itoa(endpointPort), "--udp-port", strconv.Itoa(endpointPort)) webserverPod0.Labels = jig.Labels webserverPod0.Spec.HostNetwork = true e2epod.SetNodeSelection(&webserverPod0.Spec, e2epod.NodeSelection{Name: node0.Name})