move node endpoints initialization to separate section

This commit is contained in:
corneredrat
2023-02-04 21:14:20 +05:30
parent f601956af9
commit 92e63b5991

View File

@@ -52,6 +52,10 @@ var (
)
func init() {
setKubeEndpoints()
}
func setKubeEndpoints() {
var o string
hostIP := "127.0.0.1"
@@ -73,6 +77,7 @@ func init() {
KubeletHealthCheckEndpoint = fmt.Sprintf("http://%s:%s/healthz", hostIP, kubeletPort)
KubeProxyHealthCheckEndpoint = fmt.Sprintf("http://%s:%s/healthz", hostIP, kubeProxyPort)
}
type HealthChecker interface {