external_ips

package
v1.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

README

Update matrix table

matrix.bash script should be used by a developer to update the matrix table, i.e., the *to_node.go files in this directory. The developer sets up an environment with 2 nodes running k8s with kube-proxy and cilium with the node-port feature disabled, the results of the matrix.bash testing will be the baseline and the conformity for the tests being executed in ginkgo, where cilium will run with node-port feature enabled and without kube-proxy.

Create a k8s cluster with 2 nodes and NFS

NETNEXT=1 NFS=1 NWORKERS=1 K8S=1 ./contrib/vagrant/start.sh

the NFS is important because it makes the script to create 2 network interfaces on each VM.

When both VMs are up and ready ssh in one of them and run:

kubectl label node k8s1 'cilium.io/ci-node=k8s1'
kubectl label node k8s2 'cilium.io/ci-node=k8s2'

Create the service tests

kubectl create ns external-ips-test
kubectl apply -f test/k8sT/manifests/externalIPs

We now have a 2 externalIPs services exposed in both nodes. We have 3 externalIPs configured on each service, 2 of those IPs (192.168.60.11 and 192.168.61.11) should belong to k8s1, the 3rd (192.0.2.233) represent a externalIP that is routable in the cluster.

Once the pods and services are up and running run:

bash test/k8sT/manifests/externalIPs/matrix.bash -g external-ips-test

This will give you an example output of the command that you should use to test.

Then execute the command where you have a valid KUBECONFIG file that points to the cluster running those 2 nodes:

TODO: provide a way to run the script automatically for a 3rd host. Execute the same command without the -c flag in the host that is hosting both VMs. Do not forget to run sudo ip route add 192.0.2.0/24 via 192.168.61.11 so you can actually make requests to k8s1 with the destination IP 192.0.2.233

Also, DO NOT FORGET the remove the route after being done with the test in the host, otherwise the test behavior when running in k8s1 and k8s2 might not be the expected one.

  • host - This will simulate the behavior of a client running outside the cluster.

If you want, repeat the previous steps for cilium with node-port feature, for that run on k8s1 and k8s2:

sudo service kube-proxy stop && sudo su -c 'iptables-save | grep -v KUBE | iptables-restore'

and start cilium with --enable-node-port --device=enp0s10

Documentation

Index

Constants

View Source
const (
	PublicInterfaceName  = "enp0s10"
	PrivateInterfaceName = "enp0s8"
)

Variables

View Source
var (
	ExpectedResultFromNode1 = map[string]map[string]EntryTestArgs{
		"svc-a-external-ips-k8s1-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-a-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-b-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-c-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-d-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-e-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-c-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-d-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-e-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-a-external-ips-k8s1-host-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-a-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-b-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-c-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-d-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-e-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-c-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30003",
				Expected:    "app2",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-d-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30004",
				Expected:    "app4",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-e-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30005",
				Expected:    "app6",
			},
		},
		"svc-a-external-ips-k8s1-host-private": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-a-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-b-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-c-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-d-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-e-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-c-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30003",
				Expected:    "app2",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-d-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30004",
				Expected:    "app4",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-e-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30005",
				Expected:    "app6",
			},
		},
		"svc-b-external-ips-k8s1-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-a-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-b-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-c-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-d-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-e-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-c-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-d-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-e-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-b-external-ips-k8s1-host-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-a-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-b-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-c-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-d-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-e-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-c-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30003",
				Expected:    "app2",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-d-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30004",
				Expected:    "app4",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-e-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30005",
				Expected:    "app6",
			},
		},
		"svc-b-external-ips-k8s1-host-private": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-a-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-b-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-c-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-d-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-e-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-c-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30003",
				Expected:    "app2",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-d-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30004",
				Expected:    "app4",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-e-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30005",
				Expected:    "app6",
			},
		},
		"localhost": {
			"svc-a-external-ips-svc-port": {
				Description: "localhost:svc-a-external-ips-svc-port",
				IP:          "127.0.0.1",
				Port:        "82",
				Expected:    "connection refused",
			},
			"svc-b-external-ips-svc-port": {
				Description: "localhost:svc-b-external-ips-svc-port",
				IP:          "127.0.0.1",
				Port:        "30002",
				Expected:    "connection refused",
			},
			"svc-c-node-port-svc-port": {
				Description: "localhost:svc-c-node-port-svc-port",
				IP:          "127.0.0.1",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "localhost:svc-d-node-port-svc-port",
				IP:          "127.0.0.1",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "localhost:svc-e-node-port-svc-port",
				IP:          "127.0.0.1",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "localhost:svc-c-node-port-node-port",
				IP:          "127.0.0.1",
				Port:        "30003",
				Expected:    "app2",
			},
			"svc-d-node-port-node-port": {
				Description: "localhost:svc-d-node-port-node-port",
				IP:          "127.0.0.1",
				Port:        "30004",
				Expected:    "app4",
			},
			"svc-e-node-port-node-port": {
				Description: "localhost:svc-e-node-port-node-port",
				IP:          "127.0.0.1",
				Port:        "30005",
				Expected:    "app6",
			},
		},
		"svc-a-external-ips-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.223",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.223",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.223",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.223",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.223",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.223",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.223",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.223",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-b-external-ips-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.111",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.111",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.111",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.111",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.111",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.111",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.111",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.111",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-c-node-port-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.141",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.141",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.141",
				Port:        "83",
				Expected:    "app2",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.141",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.141",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-c-node-port-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.141",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-c-node-port-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.141",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-c-node-port-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.141",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-d-node-port-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.101",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.101",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.101",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.101",
				Port:        "84",
				Expected:    "app4",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.101",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-d-node-port-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.101",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-d-node-port-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.101",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-d-node-port-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.101",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-e-node-port-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.80",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.80",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.80",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.80",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.80",
				Port:        "85",
				Expected:    "app6",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-e-node-port-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.80",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-e-node-port-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.80",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-e-node-port-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.80",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
	}
)
View Source
var (
	ExpectedResultFromNode2 = map[string]map[string]EntryTestArgs{
		"svc-a-external-ips-k8s1-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-a-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-b-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-c-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-d-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-e-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-c-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-d-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-e-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-a-external-ips-k8s1-host-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-a-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-b-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-c-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-d-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-e-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-c-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30003",
				Expected:    "app2",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-d-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30004",
				Expected:    "app4",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-e-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30005",
				Expected:    "app6",
				SkipReason:  "Because we SNAT the request. @dborkmann will fix it",
			},
		},
		"svc-a-external-ips-k8s1-host-private": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-a-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "82",
				Expected:    "app1",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-b-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "30002",
				Expected:    "app1",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-c-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-d-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-e-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-c-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30003",
				Expected:    "app2",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-d-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30004",
				Expected:    "app4",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-e-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30005",
				Expected:    "app6",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
		},
		"svc-b-external-ips-k8s1-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-a-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-b-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-c-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-d-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-e-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-c-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-d-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-e-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-b-external-ips-k8s1-host-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-a-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-b-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-c-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-d-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-e-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-c-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30003",
				Expected:    "app2",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-d-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30004",
				Expected:    "app4",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-e-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30005",
				Expected:    "app6",
				SkipReason:  "Because we SNAT the request. @dborkmann will fix it",
			},
		},
		"svc-b-external-ips-k8s1-host-private": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-a-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "82",
				Expected:    "app1",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-b-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "30002",
				Expected:    "app1",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-c-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-d-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-e-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-c-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30003",
				Expected:    "app2",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-d-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30004",
				Expected:    "app4",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-e-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30005",
				Expected:    "app6",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
		},
		"localhost": {
			"svc-a-external-ips-svc-port": {
				Description: "localhost:svc-a-external-ips-svc-port",
				IP:          "127.0.0.1",
				Port:        "82",
				Expected:    "connection refused",
			},
			"svc-b-external-ips-svc-port": {
				Description: "localhost:svc-b-external-ips-svc-port",
				IP:          "127.0.0.1",
				Port:        "30002",
				Expected:    "connection refused",
			},
			"svc-c-node-port-svc-port": {
				Description: "localhost:svc-c-node-port-svc-port",
				IP:          "127.0.0.1",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "localhost:svc-d-node-port-svc-port",
				IP:          "127.0.0.1",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "localhost:svc-e-node-port-svc-port",
				IP:          "127.0.0.1",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "localhost:svc-c-node-port-node-port",
				IP:          "127.0.0.1",
				Port:        "30003",
				Expected:    "app2",
			},
			"svc-d-node-port-node-port": {
				Description: "localhost:svc-d-node-port-node-port",
				IP:          "127.0.0.1",
				Port:        "30004",
				Expected:    "app4",
			},
			"svc-e-node-port-node-port": {
				Description: "localhost:svc-e-node-port-node-port",
				IP:          "127.0.0.1",
				Port:        "30005",
				Expected:    "app6",
				SkipReason:  "needs kernel changes as we can't distinguish between pod traffic and host traffic",
			},
		},
		"svc-a-external-ips-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.223",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.223",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.223",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.223",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.223",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.223",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.223",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.223",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-b-external-ips-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.111",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.111",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.111",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.111",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.111",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.111",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.111",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.111",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-c-node-port-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.141",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.141",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.141",
				Port:        "83",
				Expected:    "app2",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.141",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.141",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-c-node-port-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.141",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-c-node-port-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.141",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-c-node-port-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.141",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-d-node-port-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.101",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.101",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.101",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.101",
				Port:        "84",
				Expected:    "app4",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.101",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-d-node-port-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.101",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-d-node-port-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.101",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-d-node-port-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.101",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-e-node-port-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.80",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.80",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.80",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.80",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.80",
				Port:        "85",
				Expected:    "app6",
				SkipReason:  "Because we SNAT the request. @dborkmann will fix it",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-e-node-port-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.80",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-e-node-port-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.80",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-e-node-port-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.80",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
	}
)
View Source
var (
	ExpectedResultFromPodInNode1 = map[string]map[string]EntryTestArgs{
		"svc-a-external-ips-k8s1-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-a-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-b-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-c-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-d-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-e-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-c-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-d-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-e-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-a-external-ips-k8s1-host-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-a-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-b-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-c-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-d-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-e-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-c-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30003",
				Expected:    "app2",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-d-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30004",
				Expected:    "app4",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-e-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30005",
				Expected:    "app6",
			},
		},
		"svc-a-external-ips-k8s1-host-private": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-a-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-b-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-c-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-d-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-e-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-c-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30003",
				Expected:    "app2",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-d-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30004",
				Expected:    "app4",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-e-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30005",
				Expected:    "app6",
			},
		},
		"svc-b-external-ips-k8s1-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-a-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-b-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-c-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-d-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-e-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-c-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-d-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-e-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-b-external-ips-k8s1-host-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-a-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-b-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-c-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-d-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-e-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-c-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30003",
				Expected:    "app2",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-d-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30004",
				Expected:    "app4",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-e-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30005",
				Expected:    "app6",
			},
		},
		"svc-b-external-ips-k8s1-host-private": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-a-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-b-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-c-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-d-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-e-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-c-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30003",
				Expected:    "app2",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-d-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30004",
				Expected:    "app4",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-e-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30005",
				Expected:    "app6",
			},
		},
		"localhost": {
			"svc-a-external-ips-svc-port": {
				Description: "localhost:svc-a-external-ips-svc-port",
				IP:          "127.0.0.1",
				Port:        "82",
				Expected:    "connection refused",
			},
			"svc-b-external-ips-svc-port": {
				Description: "localhost:svc-b-external-ips-svc-port",
				IP:          "127.0.0.1",
				Port:        "30002",
				Expected:    "connection refused",
			},
			"svc-c-node-port-svc-port": {
				Description: "localhost:svc-c-node-port-svc-port",
				IP:          "127.0.0.1",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "localhost:svc-d-node-port-svc-port",
				IP:          "127.0.0.1",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "localhost:svc-e-node-port-svc-port",
				IP:          "127.0.0.1",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "localhost:svc-c-node-port-node-port",
				IP:          "127.0.0.1",
				Port:        "30003",
				Expected:    "connection refused",
				SkipReason:  "needs kernel changes as we can't distinguish between pod traffic and host traffic",
			},
			"svc-d-node-port-node-port": {
				Description: "localhost:svc-d-node-port-node-port",
				IP:          "127.0.0.1",
				Port:        "30004",
				Expected:    "connection refused",
				SkipReason:  "needs kernel changes as we can't distinguish between pod traffic and host traffic",
			},
			"svc-e-node-port-node-port": {
				Description: "localhost:svc-e-node-port-node-port",
				IP:          "127.0.0.1",
				Port:        "30005",
				Expected:    "connection refused",
				SkipReason:  "needs kernel changes as we can't distinguish between pod traffic and host traffic",
			},
		},
		"svc-a-external-ips-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.223",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.223",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.223",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.223",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.223",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.223",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.223",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.223",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-b-external-ips-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.111",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.111",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.111",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.111",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.111",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.111",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.111",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.111",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-c-node-port-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.141",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.141",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.141",
				Port:        "83",
				Expected:    "app2",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.141",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.141",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-c-node-port-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.141",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-c-node-port-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.141",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-c-node-port-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.141",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-d-node-port-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.101",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.101",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.101",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.101",
				Port:        "84",
				Expected:    "app4",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.101",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-d-node-port-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.101",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-d-node-port-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.101",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-d-node-port-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.101",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-e-node-port-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.80",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.80",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.80",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.80",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.80",
				Port:        "85",
				Expected:    "app6",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-e-node-port-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.80",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-e-node-port-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.80",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-e-node-port-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.80",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
	}
)
View Source
var (
	ExpectedResultFromPodInNode2 = map[string]map[string]EntryTestArgs{
		"svc-a-external-ips-k8s1-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-a-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-b-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-c-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-d-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-e-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-c-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-d-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-public:svc-e-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-a-external-ips-k8s1-host-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-a-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-b-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-c-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-d-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-e-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-c-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30003",
				Expected:    "app2",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-d-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30004",
				Expected:    "app4",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-public:svc-e-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30005",
				Expected:    "app6",
				SkipReason:  "Because we SNAT the request. @dborkmann will fix it",
			},
		},
		"svc-a-external-ips-k8s1-host-private": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-a-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-b-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-c-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-d-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-e-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-c-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30003",
				Expected:    "app2",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-d-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30004",
				Expected:    "app4",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-k8s1-host-private:svc-e-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30005",
				Expected:    "app6",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
		},
		"svc-b-external-ips-k8s1-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-a-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-b-external-ips-svc-port",
				IP:          "192.0.2.233",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-c-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-d-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-e-node-port-svc-port",
				IP:          "192.0.2.233",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-c-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-d-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-public:svc-e-node-port-node-port",
				IP:          "192.0.2.233",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-b-external-ips-k8s1-host-public": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-a-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-b-external-ips-svc-port",
				IP:          "192.168.61.11",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-c-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-d-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-e-node-port-svc-port",
				IP:          "192.168.61.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-c-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30003",
				Expected:    "app2",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-d-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30004",
				Expected:    "app4",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-public:svc-e-node-port-node-port",
				IP:          "192.168.61.11",
				Port:        "30005",
				Expected:    "app6",
				SkipReason:  "Because we SNAT the request. @dborkmann will fix it",
			},
		},
		"svc-b-external-ips-k8s1-host-private": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-a-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-b-external-ips-svc-port",
				IP:          "192.168.60.11",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-c-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-d-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-e-node-port-svc-port",
				IP:          "192.168.60.11",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-c-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30003",
				Expected:    "app2",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-d-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30004",
				Expected:    "app4",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-k8s1-host-private:svc-e-node-port-node-port",
				IP:          "192.168.60.11",
				Port:        "30005",
				Expected:    "app6",
				SkipReason: "on the receiving node we only install a BPF program " +
					"on the interface with the IP 192.168.61.11 so we can't translate " +
					"traffic incoming into this interface",
			},
		},
		"localhost": {
			"svc-a-external-ips-svc-port": {
				Description: "localhost:svc-a-external-ips-svc-port",
				IP:          "127.0.0.1",
				Port:        "82",
				Expected:    "connection refused",
			},
			"svc-b-external-ips-svc-port": {
				Description: "localhost:svc-b-external-ips-svc-port",
				IP:          "127.0.0.1",
				Port:        "30002",
				Expected:    "connection refused",
			},
			"svc-c-node-port-svc-port": {
				Description: "localhost:svc-c-node-port-svc-port",
				IP:          "127.0.0.1",
				Port:        "83",
				Expected:    "connection refused",
			},
			"svc-d-node-port-svc-port": {
				Description: "localhost:svc-d-node-port-svc-port",
				IP:          "127.0.0.1",
				Port:        "84",
				Expected:    "connection refused",
			},
			"svc-e-node-port-svc-port": {
				Description: "localhost:svc-e-node-port-svc-port",
				IP:          "127.0.0.1",
				Port:        "85",
				Expected:    "connection refused",
			},
			"svc-c-node-port-node-port": {
				Description: "localhost:svc-c-node-port-node-port",
				IP:          "127.0.0.1",
				Port:        "30003",
				Expected:    "connection refused",
				SkipReason:  "needs kernel changes as we can't distinguish between pod traffic and host traffic",
			},
			"svc-d-node-port-node-port": {
				Description: "localhost:svc-d-node-port-node-port",
				IP:          "127.0.0.1",
				Port:        "30004",
				Expected:    "connection refused",
				SkipReason:  "needs kernel changes as we can't distinguish between pod traffic and host traffic",
			},
			"svc-e-node-port-node-port": {
				Description: "localhost:svc-e-node-port-node-port",
				IP:          "127.0.0.1",
				Port:        "30005",
				Expected:    "connection refused",
				SkipReason:  "needs kernel changes as we can't distinguish between pod traffic and host traffic",
			},
		},
		"svc-a-external-ips-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.223",
				Port:        "82",
				Expected:    "app1",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.223",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.223",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.223",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.223",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.223",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.223",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-a-external-ips-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.223",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-b-external-ips-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.111",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.111",
				Port:        "30002",
				Expected:    "app1",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.111",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.111",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.111",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.111",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.111",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-b-external-ips-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.111",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-c-node-port-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.141",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.141",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.141",
				Port:        "83",
				Expected:    "app2",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.141",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-c-node-port-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.141",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-c-node-port-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.141",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-c-node-port-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.141",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-c-node-port-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.141",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-d-node-port-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.101",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.101",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.101",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.101",
				Port:        "84",
				Expected:    "app4",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-d-node-port-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.101",
				Port:        "85",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-d-node-port-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.101",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-d-node-port-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.101",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-d-node-port-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.101",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
		"svc-e-node-port-cluster-ip": {
			"svc-a-external-ips-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-a-external-ips-svc-port",
				IP:          "172.20.0.80",
				Port:        "82",
				Expected:    "No route to host / connection timed out",
			},
			"svc-b-external-ips-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-b-external-ips-svc-port",
				IP:          "172.20.0.80",
				Port:        "30002",
				Expected:    "No route to host / connection timed out",
			},
			"svc-c-node-port-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-c-node-port-svc-port",
				IP:          "172.20.0.80",
				Port:        "83",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-d-node-port-svc-port",
				IP:          "172.20.0.80",
				Port:        "84",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-svc-port": {
				Description: "svc-e-node-port-cluster-ip:svc-e-node-port-svc-port",
				IP:          "172.20.0.80",
				Port:        "85",
				Expected:    "app6",
				SkipReason:  "Because we SNAT the request. @dborkmann will fix it",
			},
			"svc-c-node-port-node-port": {
				Description: "svc-e-node-port-cluster-ip:svc-c-node-port-node-port",
				IP:          "172.20.0.80",
				Port:        "30003",
				Expected:    "No route to host / connection timed out",
			},
			"svc-d-node-port-node-port": {
				Description: "svc-e-node-port-cluster-ip:svc-d-node-port-node-port",
				IP:          "172.20.0.80",
				Port:        "30004",
				Expected:    "No route to host / connection timed out",
			},
			"svc-e-node-port-node-port": {
				Description: "svc-e-node-port-cluster-ip:svc-e-node-port-node-port",
				IP:          "172.20.0.80",
				Port:        "30005",
				Expected:    "No route to host / connection timed out",
			},
		},
	}
)
View Source
var NetDevTranslation = map[string]string{
	"svc-a-external-ips-k8s1-host-public":  PublicInterfaceName,
	"svc-b-external-ips-k8s1-host-public":  PublicInterfaceName,
	"svc-a-external-ips-k8s1-host-private": PrivateInterfaceName,
	"svc-b-external-ips-k8s1-host-private": PrivateInterfaceName,
}

On both dev and CI VMs the public interface, i.e., an interface that has a network shared with the host is the 'enp0s10'. The private interface, i.e., an interface that has a network shared with all VMs is the 'enp0s8'

Functions

This section is empty.

Types

type EntryTestArgs

type EntryTestArgs struct {
	Description string
	Expected    string
	IP          string
	Port        string
	SkipReason  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL