Add some retry to the service proxy.

This commit is contained in:
Brendan Burns
2014-11-10 22:18:01 -08:00
parent 97cb1fa2df
commit 3b5029c673
2 changed files with 30 additions and 23 deletions

View File

@@ -28,6 +28,7 @@ import (
"time"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util/iptables"
)
@@ -97,6 +98,9 @@ var tcpServerPort string
var udpServerPort string
func init() {
// Don't handle panics
util.ReallyCrash = true
// TCP setup.
tcp := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)