mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
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:
commit
c0a0b0d396
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user