Merge pull request #293 from galal-hussein/remove_deprecated_flags

Change address to bind-address for scheduler and controller-manager
This commit is contained in:
Darren Shepherd 2019-04-03 11:57:58 -07:00 committed by GitHub
commit c0a0b0d396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {