https://rancher.com/ logo
#fleet
Title
s

strong-optician-75366

05/04/2022, 5:45 AM
Cluster targeting We need to assign the clusters of a customer to his repo. The following code in the repo definition does not work for me. Is this by design?
Copy code
targets:
     - clusterName: c-foo33
     - clusterName: c-bar22
Assigning via a cluster group works:
Copy code
targets:
     - name: location-a
       clusterGroup: location-a
     - name: location-b
       clusterGroup: location-b
b

busy-ability-54059

06/13/2022, 9:01 AM
Hi @strong-optician-75366. One tip here is that you can use rancher dashboard (GUI) -> Continuous Delivery prod (Fleet) and do you operation from there. You can check the YAML's it produces for the various ways rancher provides to target a cluster/cluster group for a git repo. Hope it helps 🙏
s

strong-optician-75366

06/13/2022, 1:23 PM
Thank you Alexandre, but unfortunately it's not possible to create a setup with 2 cluster targets in the dashboard, so I'm not able to simulate this use-case.
6 Views