Add a QPS limiter to the kubernetes client.

This commit is contained in:
Brendan Burns
2015-03-30 20:21:21 -07:00
parent e912d5204c
commit 3f98ac07c2
6 changed files with 26 additions and 11 deletions

View File

@@ -208,7 +208,7 @@ func contactOthers(state *State) {
Host: os.Getenv("KUBERNETES_RO_SERVICE_HOST") + ":" + os.Getenv("KUBERNETES_RO_SERVICE_PORT"),
Path: "/api/v1beta1",
}
client := &client.Client{client.NewRESTClient(&masterRO, "v1beta1", latest.Codec, true)}
client := &client.Client{client.NewRESTClient(&masterRO, "v1beta1", latest.Codec, true, 0)}
// Do this repeatedly, in case there's some propagation delay with getting
// newly started pods into the endpoints list.