mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-03-19 09:10:21 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue