We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92e63b5 commit 83e5207Copy full SHA for 83e5207
pkg/healthchecker/types/types.go
@@ -44,6 +44,10 @@ const (
44
nodeEnvKey = "HOST_IP"
45
kubeletPortKey = "KUBELET_PORT"
46
kubeProxyPortKey = "KUBEPROXY_PORT"
47
+
48
+ defaultHostIP = "127.0.0.1"
49
+ defaultKubeletPort = "10248"
50
+ defaultKubeproxyPort = "10256"
51
)
52
53
var (
@@ -58,9 +62,9 @@ func init() {
58
62
func setKubeEndpoints() {
59
63
var o string
60
64
61
- hostIP := "127.0.0.1"
- kubeletPort := "10248"
- kubeProxyPort := "10256"
65
+ hostIP := defaultHostIP
66
+ kubeletPort := defaultKubeletPort
67
+ kubeProxyPort := defaultKubeproxyPort
68
69
o = os.Getenv(nodeEnvKey)
70
if o != "" {
0 commit comments