mirror of
https://github.com/k3s-io/k3s.git
synced 2026-06-08 16:26:16 -04:00
add agent flag disable-apiserver-lb (#8717)
* add node flag disable-agent-lb * add agent flag disable-apiserver-lb Co-authored-by: Brad Davidson <brad@oatmail.org> Signed-off-by: chenk008 <kongchen28@gmail.com>
This commit is contained in:
parent
30c8ad926d
commit
b47cbbfd42
1 changed files with 6 additions and 0 deletions
|
|
@ -209,6 +209,11 @@ var (
|
|||
Destination: &AgentConfig.ImageCredProvConfig,
|
||||
Value: "/var/lib/rancher/credentialprovider/config.yaml",
|
||||
}
|
||||
DisableAgentLBFlag = &cli.BoolFlag{
|
||||
Name: "disable-apiserver-lb",
|
||||
Usage: "(agent/networking) (experimental) Disable the agent's client-side load-balancer and connect directly to the configured server address",
|
||||
Destination: &AgentConfig.DisableLoadBalancer,
|
||||
}
|
||||
)
|
||||
|
||||
func NewAgentCommand(action func(ctx *cli.Context) error) cli.Command {
|
||||
|
|
@ -277,6 +282,7 @@ func NewAgentCommand(action func(ctx *cli.Context) error) cli.Command {
|
|||
DockerFlag,
|
||||
VPNAuth,
|
||||
VPNAuthFile,
|
||||
DisableAgentLBFlag,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue