karmada/docs/userguide/configure-controllers.md

2.7 KiB

Table of Contents generated with DocToc

Configure Controllers

Karmada maintains a bunch of controllers which are control loops that watch the state of your system, then make or request changes where needed. Each controller tries to move the current state closer to the desired state. See Kubernetes Controller Concepts for more details.

Controllers Overview

The controllers are embedded into component of karmada-controller-manager or karmada-agent and will be launched
along with components startup. Some controllers may be shared by karmada-controller-manager and karmada-agent.

Controller In karmada-controller-manager In karmada-agent
cluster Y N
clusterStatus Y Y
binding Y N
execution Y Y
workStatus Y Y
namespace Y N
serviceExport Y Y
endpointSlice Y N
serviceImport Y N
unifiedAuth Y N
hpa Y N

Configure Controllers

You can use --controllers flag to specify the enabled controller list for karmada-controller-manager and karmada-agent, or disable some of them in addition to the default list.

E.g. Specify a controller list:

--controllers=cluster,clusterStatus,binding,xxx

E.g. Disable some controllers:

--controllers=-hpa,-unifiedAuth

Use -foo to disable the controller named foo.

Note: The default controller list might be changed in the following release. The controllers enabled by last release might be disabled or deprecated and new controllers might be introduced too. Users who are using this flag should check the release notes before system upgrade.