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

straight-fireman-71417

05/24/2022, 6:31 PM
👋 Does anyone know if it’s possible to deploy GitRepos using fleet? As in I need to push GitRepos to the local cluster and have them deployed to the fleet-default namespace.
b

bumpy-vegetable-44078

05/24/2022, 10:25 PM
usually you need to set a default target if you create from yaml IIRC. you can compare the yaml from yaml created from UI
g

great-bear-19718

05/24/2022, 10:32 PM
yeah should be possible
s

straight-fireman-71417

05/24/2022, 10:35 PM
Deploying to the local cluster oddly doesn't allow targets from the UI
g

great-bear-19718

05/24/2022, 10:36 PM
not sure i understand the issue completely
is the gitrepo or sample available somewhere?
s

straight-fireman-71417

05/24/2022, 10:41 PM
I can supply some, but it'll be a second I'm not at my computer
g

great-bear-19718

05/24/2022, 10:44 PM
no worries.. i will be around
s

straight-fireman-71417

05/24/2022, 11:16 PM
Alright, so I managed to fix it as it seems to be an issue with creating a deployment via the UI to the local cluster. It never targets anything. Once I edited the yaml by hand it at least gets a bundle. Now the bundle is just stuck in a wait-applied state.
Which I think stems from that fleet-agent-local also seems to be stuck
g

great-bear-19718

05/24/2022, 11:23 PM
any messages in the fleet-agent-local?
s

straight-fireman-71417

05/24/2022, 11:23 PM
As in the pod or the resource?
g

great-bear-19718

05/24/2022, 11:23 PM
if its in
wait-applied
it would mean the bundle has been processed by the controller and is now waiting on agent to do the needful
i mean the pod logs..
s

straight-fireman-71417

05/24/2022, 11:24 PM
I mean, it’s trying to deploy fleet-agent-local which is what handles the deployment in that cluster… so no
Unless I’m missing something I’m not sure how fleet would deploy things into the cluster without the agent.
Yeah fleet-agent-local seems stuck which means nothing ever gets deployed into the local cluster
So some things do make it, but fleet-agent does not and the gitrepo does not
And there is no fleet-agent pod running
g

great-bear-19718

05/25/2022, 12:01 AM
is there a specific reason why the fleet-agent pod would not be available.. ideally rancher would have managed this for you
unless you are using just standalone fleet
s

straight-fireman-71417

05/25/2022, 12:18 AM
Rancher did have some issues the other day and some of the nodes crashed and it's possible fleet agent was on one. I'm not sure how you'd go about bringing it back online.
Since fleet is in charge of deploying itself I'm not sure how to get it back.
g

great-bear-19718

05/25/2022, 12:37 AM
there should be a bundle for the fleet-agent-local itself
s

straight-fireman-71417

05/25/2022, 12:52 AM
Yeah which as I stated above is in a wait applied state with nothing progressing. I've redeployed fleet controller, deleted the bundle, deleted the bundle deployment, nothing.
p

powerful-elephant-25838

05/25/2022, 6:54 PM
I deploy gitrepos using git but it depends on what is your need. Do not know if we are on the same use case. Not at PC now but if you explain what you want to achieve
43 Views