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

bulky-lion-74983

02/07/2023, 5:28 PM
Hello! I am new to Rancher and Fleet. I am trying to implement Fleet inside Rancher. I have a Helm chart to deploy an application into a cluster, and am using different values files for Dev, Staging and Production. Using Helm I can easily choose a different values file depending on where I am deploying. I have Fleet working inside Rancher to deploy the app, but I see no way to tell it what values file to use. And I have tried searching the subject with no joy so far. Can someone point me in the right direction?
m

mammoth-postman-10874

02/07/2023, 5:29 PM
b

bulky-lion-74983

02/07/2023, 5:30 PM
Thanks! I'll devour that and see what I get.
I have looked over that link Dinar. I see how I can make that work, seems a bit involved for what I am trying to accomplish. I was hoping that I could setup 3 different yaml files with dev.yaml and staging.yaml and add a parameter that would point to that file and override the values.yaml file. That way I can make changes to a dev branch and have fleet deploy that to where ever fleet tells it. And then when I merge to staging I get that deployed to where ever Fleet tells it and finally when staging is merged into main/production Fleet then deploys that. Not sure where to find such a parameter to add to the Fleet manifest. I am hoping there is one.
That would also allow for using the same files and methods for installing things with helm if needed.
m

mammoth-postman-10874

02/07/2023, 9:22 PM
You can create gitrepo in a fleet terms per environment, pointing to a three different branches. And progress accordingly
b

bulky-lion-74983

02/07/2023, 9:23 PM
How do you merge between repos?
m

mammoth-postman-10874

02/07/2023, 9:24 PM
git repo is a fleet term. I can point to a same repo but a different branch or commit or tag
b

bulky-lion-74983

02/07/2023, 9:25 PM
Let me look at that before I say any more.
So one way to accomplish this is to create sub directories and symlink everything but the yaml file that couls work then you would set the branch and the path.
And I did think about that first, but was thinking others must have done this and solved it before me.
m

mammoth-postman-10874

02/07/2023, 9:29 PM
We do gitrepo per path where the path is a specific application
b

bulky-lion-74983

02/07/2023, 9:29 PM
Right
Where can I go to submit a suggestion?
m

mammoth-postman-10874

02/07/2023, 9:30 PM
b

bulky-lion-74983

02/07/2023, 9:31 PM
Thanks!
Is there some documentation of the fleet.yaml file and it's options? I saw this (posted below) in an issue and if there is a way to pick values files like it looks like that would get me there.
Copy code
helm:
  repo: xyz
  chart: xyz
  version: 1.9.1
  releaseName: release
  maxHistory: 3
  valuesFiles:
    - values.yml
Never mind I think i found some.
So apparently there is no way to do what I want to yet. https://github.com/rancher/fleet/issues/344
88 Views