Switch to using the official etcd health check.
This commit is contained in:
@@ -715,7 +715,7 @@ func (m *Master) getServersToValidate(c *Config) map[string]apiserver.Server {
|
||||
addr = etcdUrl.Host
|
||||
port = 4001
|
||||
}
|
||||
serversToValidate[fmt.Sprintf("etcd-%d", ix)] = apiserver.Server{Addr: addr, Port: port, Path: "/v2/keys/"}
|
||||
serversToValidate[fmt.Sprintf("etcd-%d", ix)] = apiserver.Server{Addr: addr, Port: port, Path: "/health", Validate: tools.EtcdHealthCheck}
|
||||
}
|
||||
return serversToValidate
|
||||
}
|
||||
|
Reference in New Issue
Block a user