diff --git a/pkg/master/master.go b/pkg/master/master.go index cfcf263d183..0f981ff035e 100644 --- a/pkg/master/master.go +++ b/pkg/master/master.go @@ -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 }