mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
added profile = false args to api, controllerManager, and scheduler (#1891)
This commit is contained in:
parent
af10a574f1
commit
7f4f237575
@ -152,6 +152,7 @@ func scheduler(cfg *config.Control, runtime *config.ControlRuntime) error {
|
||||
"port": "10251",
|
||||
"bind-address": "127.0.0.1",
|
||||
"secure-port": "0",
|
||||
"profiling": "false",
|
||||
}
|
||||
if cfg.NoLeaderElect {
|
||||
argsMap["leader-elect"] = "false"
|
||||
@ -205,6 +206,7 @@ func apiServer(ctx context.Context, cfg *config.Control, runtime *config.Control
|
||||
argsMap["client-ca-file"] = runtime.ClientCA
|
||||
argsMap["enable-admission-plugins"] = "NodeRestriction"
|
||||
argsMap["anonymous-auth"] = "false"
|
||||
argsMap["profiling"] = "false"
|
||||
if cfg.EncryptSecrets {
|
||||
argsMap["encryption-provider-config"] = runtime.EncryptionConfig
|
||||
}
|
||||
@ -906,6 +908,7 @@ func cloudControllerManager(ctx context.Context, cfg *config.Control, runtime *c
|
||||
"cloud-provider": version.Program,
|
||||
"allow-untagged-cloud": "true",
|
||||
"node-status-update-frequency": "1m",
|
||||
"profiling": "false",
|
||||
}
|
||||
if cfg.NoLeaderElect {
|
||||
argsMap["leader-elect"] = "false"
|
||||
|
Loading…
Reference in New Issue
Block a user