Skip to content

Commit

Permalink
add node flag disable-agent-lb
Browse files Browse the repository at this point in the history
Signed-off-by: chenk008 <kongchen28@gmail.com>
  • Loading branch information
chenk008 authored and wuhua.ck committed Oct 24, 2023
1 parent 6aef26e commit 439da55
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 @@ -209,6 +209,11 @@ var (
Destination: &AgentConfig.ImageCredProvConfig,
Value: "/var/lib/rancher/credentialprovider/config.yaml",
}
DisableAgentLBFlag = &cli.BoolFlag{
Name: "disable-agent-lb",
Usage: "(agent/node) Disable agent load balance proxy.",
Destination: &AgentConfig.DisableLoadBalancer,
}
)

func NewAgentCommand(action func(ctx *cli.Context) error) cli.Command {
Expand Down Expand Up @@ -277,6 +282,7 @@ func NewAgentCommand(action func(ctx *cli.Context) error) cli.Command {
DockerFlag,
VPNAuth,
VPNAuthFile,
DisableAgentLBFlag,
},
}
}

0 comments on commit 439da55

Please sign in to comment.