Commit ce7b9ed7 authored by chenk008's avatar chenk008 Committed by Brad Davidson

add agent flag disable-apiserver-lb (#8717)

* add node flag disable-agent-lb * add agent flag disable-apiserver-lb Co-authored-by: 's avatarBrad Davidson <brad@oatmail.org> Signed-off-by: 's avatarchenk008 <kongchen28@gmail.com> (cherry picked from commit b47cbbfd) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent 564d3c83
......@@ -222,6 +222,11 @@ var (
Usage: "(deprecated) use --flannel-backend=none",
Destination: &AgentConfig.NoFlannel,
}
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 CheckSELinuxFlags(ctx *cli.Context) error {
......@@ -310,6 +315,7 @@ func NewAgentCommand(action func(ctx *cli.Context) error) cli.Command {
},
VPNAuth,
VPNAuthFile,
DisableAgentLBFlag,
},
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment