From eba9d33c3ee05ae3c1f34c92a19f0ad89c637089 Mon Sep 17 00:00:00 2001 From: Martin Kennelly Date: Fri, 13 Aug 2021 18:30:47 +0100 Subject: [PATCH] Fix insufficient privileges to bind to port Container without elevated privileges to bind to host port less than 1024 causes bind permission denied error. Increase port number greater than 1024 to allow binding. Signed-off-by: Martin Kennelly --- test/e2e/network/service.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/e2e/network/service.go b/test/e2e/network/service.go index 269c5eac765..8ad72616778 100644 --- a/test/e2e/network/service.go +++ b/test/e2e/network/service.go @@ -2134,14 +2134,14 @@ var _ = common.SIGDescribe("Services", func() { serviceName := "svc-itp" ns := f.Namespace.Name - servicePort := 80 + servicePort := 8000 ginkgo.By("creating a TCP service " + serviceName + " with type=ClusterIP and internalTrafficPolicy=Local in namespace " + ns) local := v1.ServiceInternalTrafficPolicyLocal jig := e2eservice.NewTestJig(cs, ns, serviceName) svc, err := jig.CreateTCPService(func(svc *v1.Service) { svc.Spec.Ports = []v1.ServicePort{ - {Port: 80, Name: "http", Protocol: v1.ProtocolTCP, TargetPort: intstr.FromInt(80)}, + {Port: 8000, Name: "http", Protocol: v1.ProtocolTCP, TargetPort: intstr.FromInt(8000)}, } svc.Spec.InternalTrafficPolicy = &local }) @@ -2214,14 +2214,14 @@ var _ = common.SIGDescribe("Services", func() { serviceName := "svc-itp" ns := f.Namespace.Name - servicePort := 80 + servicePort := 8000 ginkgo.By("creating a TCP service " + serviceName + " with type=ClusterIP and internalTrafficPolicy=Local in namespace " + ns) local := v1.ServiceInternalTrafficPolicyLocal jig := e2eservice.NewTestJig(cs, ns, serviceName) svc, err := jig.CreateTCPService(func(svc *v1.Service) { svc.Spec.Ports = []v1.ServicePort{ - {Port: 80, Name: "http", Protocol: v1.ProtocolTCP, TargetPort: intstr.FromInt(80)}, + {Port: 8000, Name: "http", Protocol: v1.ProtocolTCP, TargetPort: intstr.FromInt(8000)}, } svc.Spec.InternalTrafficPolicy = &local })