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