adamant-kite-43734
06/09/2025, 12:49 PMnutritious-diamond-21546
06/23/2025, 6:28 PMnutritious-diamond-21546
06/23/2025, 6:31 PMcommon and then use kustomize to deploy foo or bar depending on cluster selectorsnutritious-diamond-21546
06/23/2025, 6:37 PMnutritious-diamond-21546
06/23/2025, 6:40 PMTarget customization are used to determine how resources should be modified
per target. Targets are evaluated in order and the first one to match a cluster
is used for that cluster.
nutritious-diamond-21546
06/23/2025, 6:41 PMnutritious-diamond-21546
06/23/2025, 6:44 PMfleet.yaml file as an example, if you applied both the foo-enabled: "true" and bar-enabled: "true" labels to the same cluster, the resources in the foo overlays folder would only be applied. This is because the foo customization is matched first and therefore the bar customization is not processed.
https://rancher-users.slack.com/files/UHJMNGS2F/F093BHKRJAC/fleet.yamlbillowy-apple-60989
06/24/2025, 11:39 AMtargetCustomizations could be used to select which cluster gets which bundle. I ended up with a layout like this.
Fleet/
├── base/
│ ├── fleet.yaml
│ ├── kustomization.yaml
│ ├── *.yaml
│ └── overlays/
│ ├── cluster1/
│ ├── cluster2/
│ └── ...
└── foo/
├── fleet.yaml
└── *.yaml
And a GitRepo that target both the base and the foo folder, with the fleet.yaml in foo/ having a overrideTargets selector.
Thanks for the input! Might be useful if someone else struggles with this 🙂