Use non privileged ports

This commit is contained in:
Tomas Nozicka 2020-12-11 13:57:46 +01:00
parent c2369d9d44
commit e4d7915a2e

View File

@ -1094,11 +1094,11 @@ func createHostPortPodOnNode(f *framework.Framework, podName, ns, hostIP string,
{
Name: "agnhost",
Image: imageutils.GetE2EImage(imageutils.Agnhost),
Args: []string{"netexec", "--http-port=80", "--udp-port=80"},
Args: []string{"netexec", "--http-port=8080", "--udp-port=8080"},
Ports: []v1.ContainerPort{
{
HostPort: port,
ContainerPort: 80,
ContainerPort: 8080,
Protocol: protocol,
HostIP: hostIP,
},
@ -1108,7 +1108,7 @@ func createHostPortPodOnNode(f *framework.Framework, podName, ns, hostIP string,
HTTPGet: &v1.HTTPGetAction{
Path: "/hostname",
Port: intstr.IntOrString{
IntVal: int32(80),
IntVal: int32(8080),
},
Scheme: v1.URISchemeHTTP,
},