Allow (delayed) apiserver starting when network interface isn't available immediately.

This commit is contained in:
Daniel Smith
2014-11-05 12:07:33 -08:00
parent 39fba7c8d5
commit c163535563
2 changed files with 10 additions and 3 deletions

View File

@@ -191,7 +191,12 @@ func main() {
}
go func() {
defer util.HandleCrash()
glog.Fatal(readOnlyServer.ListenAndServe())
for {
if err := readOnlyServer.ListenAndServe(); err != nil {
glog.Errorf("Unable to listen for read only traffic (%v); will try again.", err)
}
time.Sleep(15 * time.Second)
}
}()
}