mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
fix sctp hostPort test
The test create a pod with a hostPort to expose an SCTP port, then it checks if the iptables rules were installed correctly in the host. The iptables rules MUST be checked in the same host where the pod is running :)
This commit is contained in:
parent
fa2787acb5
commit
bbfed8a7db
@ -3842,6 +3842,7 @@ var _ = SIGDescribe("SCTP [Feature:SCTP] [LinuxOnly]", func() {
|
||||
podName := "hostport"
|
||||
ports := []v1.ContainerPort{{Protocol: v1.ProtocolSCTP, ContainerPort: 5060, HostPort: 5060}}
|
||||
podSpec := e2epod.NewAgnhostPod(f.Namespace.Name, podName, nil, nil, ports)
|
||||
podSpec.Spec.NodeName = node.Name
|
||||
|
||||
ginkgo.By(fmt.Sprintf("Launching the pod on node %v", node.Name))
|
||||
f.PodClient().CreateSync(podSpec)
|
||||
|
Loading…
Reference in New Issue
Block a user