For various reasons to work around csi implementation shortcomings, we need to run multiple concurrent csi-attacher daemons (one per region).
However the lock name is not configurable. Code at
|
lockName := "external-attacher-leader-" + csiAttacher |
For now we accomplish this by having each instance keep its leases in a different namespaces via --leader-election-namespace, but it's annoying to have to create and maintain various namespaces containing only a lease + the necessary rolebinding
We'd love a new command line flag/env var e.g. --leader-election-lease-name with the current value as the default.
For various reasons to work around csi implementation shortcomings, we need to run multiple concurrent csi-attacher daemons (one per region).
However the lock name is not configurable. Code at
external-attacher/cmd/csi-attacher/main.go
Line 348 in 3a057e7
For now we accomplish this by having each instance keep its leases in a different namespaces via
--leader-election-namespace, but it's annoying to have to create and maintain various namespaces containing only a lease + the necessary rolebindingWe'd love a new command line flag/env var e.g.
--leader-election-lease-namewith the current value as the default.