mirror of
https://github.com/rancher/rke.git
synced 2025-04-28 03:31:24 +00:00
Change controllerMgr & scheduler listening address
**Problem:** For now, Monitoring cannot scrape metrics from controllerMgr & scheduler **Solution:** Change listening address to `0.0.0.0` **Issue:** https://github.com/rancher/rancher/issues/17922
This commit is contained in:
parent
4d47a376ad
commit
d2783a9298
@ -283,7 +283,7 @@ func (c *Cluster) BuildKubeControllerProcess(prefixPath string) v3.Process {
|
||||
}
|
||||
|
||||
CommandArgs := map[string]string{
|
||||
"address": "127.0.0.1",
|
||||
"address": "0.0.0.0",
|
||||
"allow-untagged-cloud": "true",
|
||||
"allocate-node-cidrs": "true",
|
||||
"cloud-provider": c.CloudProvider.Name,
|
||||
@ -620,7 +620,7 @@ func (c *Cluster) BuildSchedulerProcess(prefixPath string) v3.Process {
|
||||
CommandArgs := map[string]string{
|
||||
"leader-elect": "true",
|
||||
"v": "2",
|
||||
"address": "127.0.0.1",
|
||||
"address": "0.0.0.0",
|
||||
"profiling": "false",
|
||||
"kubeconfig": pki.GetConfigPath(pki.KubeSchedulerCertName),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user