Merge pull request #9210 from BenTheElder/iptables_proxy

Implement Iptables based Proxy
This commit is contained in:
CJ Cullen
2015-08-12 09:26:39 -07:00
5 changed files with 773 additions and 33 deletions

View File

@@ -309,10 +309,10 @@ var _ = Describe("Services", func() {
}
expectNoError(verifyServeHostnameServiceUp(c, host, podNames1, svc1IP, servicePort))
expectNoError(verifyServeHostnameServiceUp(c, host, podNames2, svc2IP, servicePort))
// Remove iptable rules and make sure they come back.
By("Remove iptable rules and make sure they come back")
_, _, code, err := SSH(`
sudo iptables -t nat -F KUBE-SERVICES || true;
sudo iptables -t nat -F KUBE-PORTALS-HOST || true;
sudo iptables -t nat -F KUBE-PORTALS-CONTAINER || true`, host, testContext.Provider)
if err != nil || code != 0 {