@ -13,6 +13,7 @@ import (
"github.com/erikdubbelboer/gspt"
"github.com/erikdubbelboer/gspt"
"github.com/pkg/errors"
"github.com/pkg/errors"
"github.com/rancher/k3s/pkg/agent"
"github.com/rancher/k3s/pkg/agent"
"github.com/rancher/k3s/pkg/agent/loadbalancer"
"github.com/rancher/k3s/pkg/cli/cmds"
"github.com/rancher/k3s/pkg/cli/cmds"
"github.com/rancher/k3s/pkg/clientaccess"
"github.com/rancher/k3s/pkg/clientaccess"
"github.com/rancher/k3s/pkg/datadir"
"github.com/rancher/k3s/pkg/datadir"
@ -160,6 +161,10 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
serverConfig . ControlConfig . DisableControllerManager = true
serverConfig . ControlConfig . DisableControllerManager = true
serverConfig . ControlConfig . DisableScheduler = true
serverConfig . ControlConfig . DisableScheduler = true
serverConfig . ControlConfig . DisableCCM = true
serverConfig . ControlConfig . DisableCCM = true
// delete local loadbalancers state for apiserver and supervisor servers
loadbalancer . ResetLoadBalancer ( filepath . Join ( cfg . DataDir , "agent" ) , loadbalancer . SupervisorServiceName )
loadbalancer . ResetLoadBalancer ( filepath . Join ( cfg . DataDir , "agent" ) , loadbalancer . APIServerServiceName )
}
}
serverConfig . ControlConfig . ClusterReset = cfg . ClusterReset
serverConfig . ControlConfig . ClusterReset = cfg . ClusterReset