mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-03-02 09:40:29 +00:00
move node endpoints initialization to separate section
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user