Change:
if healthCheckNodePort == 0 { framework.Failf("Service HealthCheck NodePort was not allocated") } <del> nodeIP := pickNodeIP(jig.Client) By("hitting the TCP service's NodePort on " + nodeIP + ":" + fmt.Sprintf("%d", tcpNodePort)) jig.TestReachableHTTP(nodeIP, tcpNodePort, kubeProxyLagTimeout) </del> <ins> // TODO(33957): test localOnly nodePort Services. </ins> By("hitting the TCP service's service port, via its external VIP " + ingressIP + ":" + fmt.Sprintf("%d", svcTcpPort)) jig.TestReachableHTTP(ingressIP, svcTcpPort, kubeProxyLagTimeout) <del> By("reading clientIP using the TCP service's NodePort") content := jig.GetHTTPContent(nodeIP, tcpNodePort, kubeProxyLagTimeout, "/clientip") clientIP := content.String() framework.Logf("ClientIP detected by target pod using NodePort is %s", clientIP) </del> By("reading clientIP using the TCP service's service port via its external VIP") <del> content = jig.GetHTTPContent(ingressIP, svcTcpPort, kubeProxyLagTimeout, "/clientip") clientIP = content.String() </del> <ins> content := jig.GetHTTPContent(ingressIP, svcTcpPort, kubeProxyLagTimeout, "/clientip") clientIP := content.String() </ins> framework.Logf("ClientIP detected by target pod using VIP:SvcPort is %s", clientIP) By("checking if Source IP is preserved") if strings.HasPrefix(clientIP, "10.") {

Discussion:
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
This test started getting extremely flaky on all jobs it runs in at around 22:50

on Sept 30. See . I think was the culprit. cc
I'm re-writing it in It's hitting external-ip:nodePort of a loadbalanced service with OnlyLocal annotation. Not sure why, but yeah that will only pass if there is a local endpoint. I'm inclined to let it flake till the pr above goes in, if you prefer I can set a spot fix.
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and

externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
given how noisy this thing is, if you have time to add a spot fix, I'd appreciate it.
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of

type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly]

{Kubernetes e2e suite}
I will send one tomorrow, in the meanwhile I'll un-assign you (not that it helps because you already commented on it)
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly

[Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e

suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
[FLAKE-PING] This flaky-test issue would love to have more attention.
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}
https://k8s- Failed: [] Services should be able to create services of type LoadBalancer and externalTraffic=localOnly [Slow][Feature:ExternalTrafficLocalOnly] {Kubernetes e2e suite}

Some cloudproviders like gce simply forward packets sent to the public lb vip to a vm. The packet shows up at vm's eth0 with a destination ip=lb vip, which the vm accepts as local. Other cloudproviders, like AWS forward packets to the nodePort of the service. The packet shows up at the vm's eth0 with a destination ip=vm ip. Current implementation of source ip preservation targets the former, we need to figure out how to handle this cross platform before it goes beta.
fixed with