File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
pkg/cmd/server/kubernetes/network/options Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,10 @@ func Build(options configapi.NodeConfig) (*kubeproxyconfig.KubeProxyConfiguratio
39
39
return nil , fmt .Errorf ("The provided value to bind to must be an ip:port: %q" , addr )
40
40
}
41
41
proxyconfig .BindAddress = ip .String ()
42
- // MetricsBindAddress - disable by default but allow enablement until we switch to
43
- // reading proxy config directly
44
- proxyconfig .MetricsBindAddress = ""
42
+ // MetricsBindAddress - enable as a separate port in the 11xxx range for now, but only
43
+ // on localhost. Metrics contains no tenant information.
44
+ // TODO: move this to a secured port that we can query from prometheus.
45
+ proxyconfig .MetricsBindAddress = "localhost:11256"
45
46
if arg := options .ProxyArguments ["metrics-bind-address" ]; len (arg ) > 0 {
46
47
proxyconfig .MetricsBindAddress = arg [0 ]
47
48
}
You can’t perform that action at this time.
0 commit comments