File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ func main() {
92
92
Host: host,
93
93
MetricsBindAddress: ackCfg.MetricsAddr,
94
94
LeaderElection: ackCfg.EnableLeaderElection,
95
- LeaderElectionID: awsServiceAPIGroup,
95
+ LeaderElectionID: " ack- " + awsServiceAPIGroup,
96
96
Namespace: ackCfg.WatchNamespace,
97
97
LeaderElectionNamespace: ackCfg.LeaderElectionNamespace,
98
98
} )
Original file line number Diff line number Diff line change @@ -122,10 +122,14 @@ serviceAccount:
122
122
annotations: { }
123
123
# eks.amazonaws.com/role-arn: arn:aws:iam::AWS_ACCOUNT_ID:role/IAM_ROLE_NAME
124
124
125
- # leader election configurations
125
+ # Configuration of the leader election. Required for running multiple instances of the
126
+ # controller within the same cluster.
127
+ # See https://kubernetes.io/docs/concepts/architecture/leases/#leader-election
126
128
leaderElection:
127
- # Enables controller leader election
129
+ # Enable Controller Leader Election. Set this to true to enable leader election
130
+ # for this controller.
128
131
enabled: false
129
- # Sets the leader election namespace. By default it will try to use the namespace of
130
- # the service account mounted to the controller pod.
132
+ # Leader election can be scoped to a specific namespace. By default, the controller
133
+ # will attempt to use the namespace of the service account mounted to the Controller
134
+ # pod.
131
135
namespace: ""
You can’t perform that action at this time.
0 commit comments