mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
Use non privileged ports
This commit is contained in:
parent
c2369d9d44
commit
e4d7915a2e
@ -1094,11 +1094,11 @@ func createHostPortPodOnNode(f *framework.Framework, podName, ns, hostIP string,
|
|||||||
{
|
{
|
||||||
Name: "agnhost",
|
Name: "agnhost",
|
||||||
Image: imageutils.GetE2EImage(imageutils.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{
|
Ports: []v1.ContainerPort{
|
||||||
{
|
{
|
||||||
HostPort: port,
|
HostPort: port,
|
||||||
ContainerPort: 80,
|
ContainerPort: 8080,
|
||||||
Protocol: protocol,
|
Protocol: protocol,
|
||||||
HostIP: hostIP,
|
HostIP: hostIP,
|
||||||
},
|
},
|
||||||
@ -1108,7 +1108,7 @@ func createHostPortPodOnNode(f *framework.Framework, podName, ns, hostIP string,
|
|||||||
HTTPGet: &v1.HTTPGetAction{
|
HTTPGet: &v1.HTTPGetAction{
|
||||||
Path: "/hostname",
|
Path: "/hostname",
|
||||||
Port: intstr.IntOrString{
|
Port: intstr.IntOrString{
|
||||||
IntVal: int32(80),
|
IntVal: int32(8080),
|
||||||
},
|
},
|
||||||
Scheme: v1.URISchemeHTTP,
|
Scheme: v1.URISchemeHTTP,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user