Skip to content

Commit

Permalink
add agent flag disable-apiserver-lb (k3s-io#8717)
Browse files Browse the repository at this point in the history
* 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>
(cherry picked from commit b47cbbf)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
  • Loading branch information
chenk008 and brandond committed Nov 16, 2023
1 parent cfe9cfe commit ea7aa86
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/cli/cmds/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -310,6 +315,7 @@ func NewAgentCommand(action func(ctx *cli.Context) error) cli.Command {
},
VPNAuth,
VPNAuthFile,
DisableAgentLBFlag,
},
}
}

0 comments on commit ea7aa86

Please sign in to comment.