k8wiz
Flux CD
Hard
Architecture

One kustomize-controller can't keep up with thousands of Kustomizations. How does Flux split the work?

Select your answer:

Show answer and explanation

Answer: Extra controller instances, each with --watch-label-selector for one sharding.fluxcd.io/key value

Explanation

You label Flux objects with sharding.fluxcd.io/key, run additional controller instances that only watch their shard through --watch-label-selector, and make the main instance skip those labels. Extra replicas of one Deployment don't help, because only the leader reconciles.