Fleet: expose sharding feature #11665
Labels
kind/enhancement
QA/dev-automation
Issues that engineers have written automation around so QA doesn't have look at this
Is your feature request related to a problem? Please describe.
Fleet supports sharding since 0.10. For now, users running Fleet through Rancher need to make use of the
rancher-config
config map as described here to be able to install Fleet with sharding support enabled. This should be easier and made accessible to all users, including those more comfortable with the web UI.Sharding is meant to spread the load on controllers (both
fleet-controller
andgitjob
controllers), enabling users to decide which shard, or which part of a Fleet deployment, will process a given workload. Sharding works in two steps:fleet-controller
+gitjob
] pods as there are configured shards (0 to n), plus, in all cases, a set of such pods for unsharded workloads;GitRepo
resource, a user can then label it withfleet.cattle.io/shard-ref: my-awesome-shard-ID
to ensure that it will be deployed by the controllers which bear the corresponding shard name. In particular:GitRepo
will not be deployed by any Fleet controller.Describe the solution you'd like
This enhancement would contain the following components:
shard0
{"kubernetes.io/hostname": "k3d-upstream-server-0"}
GitRepo
, taking the newfleet.cattle.io/shard-ref
label into account and enabling only the following values:Describe alternatives you've considered
See problem description above: sharding is usable on the command line, but this may not be suitable for all users.
Additional context
More information here. Please feel free to reach out to the Fleet team if any of this is unclear.
Jira: UXUI-236
The text was updated successfully, but these errors were encountered: