mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
the component status health check should check whether the scheme of backend storage url is https or not
This commit is contained in:
parent
4f329516ae
commit
597fdede5a
@ -513,7 +513,13 @@ func (m *Master) getServersToValidate(c *Config) map[string]apiserver.Server {
|
||||
port = 4001
|
||||
}
|
||||
// TODO: etcd health checking should be abstracted in the storage tier
|
||||
serversToValidate[fmt.Sprintf("etcd-%d", ix)] = apiserver.Server{Addr: addr, Port: port, Path: "/health", Validate: etcdutil.EtcdHealthCheck}
|
||||
serversToValidate[fmt.Sprintf("etcd-%d", ix)] = apiserver.Server{
|
||||
Addr: addr,
|
||||
EnableHTTPS: etcdUrl.Scheme == "https",
|
||||
Port: port,
|
||||
Path: "/health",
|
||||
Validate: etcdutil.EtcdHealthCheck,
|
||||
}
|
||||
}
|
||||
return serversToValidate
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user