Change address to bind-address for scheduler and api

This commit is contained in:
galal-hussein 2019-03-31 14:55:56 +02:00
parent 9a1a1eccbd
commit e8c5b2498c

View File

@ -102,7 +102,7 @@ func controllerManager(cfg *config.Control, runtime *config.ControlRuntime) {
"--cluster-cidr", cfg.ClusterIPRange.String(),
"--root-ca-file", runtime.TokenCA,
"--port", "10252",
"--address", "127.0.0.1",
"--bind-address", "127.0.0.1",
"--secure-port", "0",
}
if cfg.NoLeaderElect {
@ -122,7 +122,7 @@ func scheduler(cfg *config.Control, runtime *config.ControlRuntime) {
args := []string{
"--kubeconfig", runtime.KubeConfigSystem,
"--port", "10251",
"--address", "127.0.0.1",
"--bind-address", "127.0.0.1",
"--secure-port", "0",
}
if cfg.NoLeaderElect {