Implement sharding for Flux controllers #96
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR allows configuring sharding and horizontal scaling for the Flux controllers.
Sharding configuration
The
.spec.sharding
field is optional and specifies the sharding configuration for the Flux controllers.The
.spec.sharding.key
field is optional and specifies the sharding key label to use for the Flux controllers.By default, the key is set to
sharding.fluxcd.io/key
.The
.spec.sharding.shards
field is required and specifies the list of sharding values to use for the Flux controllers.Example:
For each shard, the operator will create a separate set of controllers, e.g.:
Note that only the
source-controller
,kustomize-controller
andhelm-controller
controllerssupport sharding.
To assign a resource to a specific shard, add the
sharding.fluxcd.io/key
label with the shard value,e.g.:
sharding.fluxcd.io/key: shard1
.