https://rancher.com/ logo
Title
l

little-city-14396

01/25/2023, 9:04 AM
Hello, I'm new in this channel. I've a question about Fleet. What is the best location for the fleet.yaml file in a GitHub repo that contains helm charts and YAML files to be deployed on k8s clusters? In the root directory? It seems that it is impossible to reference YAML files to deploy in the fleet.yaml if they are in an upper directory. Just imagine that your fleet.yaml is located in root/deployment/k8s/fleet.yaml and that your YAML files are in root/some-directory/*.yaml (kustomize approach with overlays). Thanks :-)
I can read in the documentation the following: The
fleet.yaml
is an optional file that can be included in the git repository to change the behavior of how the resources are deployed and customized. The
fleet.yaml
is always at the root relative to the
path
of the
GitRepo
and if a subdirectory is found with a
fleet.yaml
a new bundle is defined that will then be configured differently from the parent bundle.