https://rancher.com/ logo
Join the conversationJoin Slack
Channels
academy
amazon
arm
azure
cabpr
chinese
ci-cd
danish
deutsch
developer
elemental
epinio
espanol
events
extensions
fleet
français
gcp
general
harvester
harvester-dev
hobbyfarm
hypper
japanese
k3d
k3os
k3s
k3s-contributor
kim
kubernetes
kubewarden
lima
logging
longhorn-dev
longhorn-storage
masterclass
mesos
mexico
nederlands
neuvector-security
office-hours
one-point-x
onlinemeetup
onlinetraining
opni
os
ozt
phillydotnet
portugues
rancher-desktop
rancher-extensions
rancher-setup
rancher-wrangler
random
rfed_ara
rio
rke
rke2
russian
s3gw
service-mesh
storage
submariner
supermicro-sixsq
swarm
terraform-controller
terraform-provider-rancher2
terraform-provider-rke
theranchcast
training-0110
training-0124
training-0131
training-0207
training-0214
training-1220
ukranian
v16-v21-migration
vsphere
windows
Powered by Linen
fleet
  • p

    purple-monkey-3785

    01/27/2023, 6:24 PM
    Hey hello guys, I'm looking to deploying the same helm chart multiple times to the same cluster, just changing the release name and values file parameters, wondering if this is possible to do? I'm experimenting with the multi-cluster examples but having trouble to figure out if this should work.
  • g

    glamorous-painting-54907

    01/30/2023, 12:25 PM
    One of my gitrepos currently stucks in
    Out of Sync
    and even a
    Force Sync
    does not help
    • 1
    • 2
  • m

    mammoth-postman-10874

    02/02/2023, 3:18 PM
    Is there a way to debug/see values.yaml produced after applying all labels to target cluster?
  • m

    mammoth-postman-10874

    02/02/2023, 3:24 PM
    Nvm, I’ve found bundleDeployments object within a cluster namespace
    :thumbsup_all: 1
  • g

    glamorous-painting-54907

    02/06/2023, 7:45 AM
    I am using
    secretKeyRef
    but seems it's not picked up by fleet.
    helm:
      valuesFrom:
        - secretKeyRef:
            name: clusterconfig
            namespace: cattle-gatekeeper-system
            key: values.yaml
    Whereas the secret
    clusterconfig
    is in ns
    cattle-gatekeeper-system
    in the target (downstream) cluster
    • 1
    • 1
  • 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
    • 2
    • 19
  • a

    ambitious-plastic-3551

    02/08/2023, 8:31 AM
    Hello! I have a fleet where I setup PVC using git repo, but somehow this pvc gets deleted in certain cases during update, I don't know the root cause, but is there any good practice with fleet? or in general I have retainPolicy Delete currently
  • a

    ambitious-plastic-3551

    02/08/2023, 8:31 AM
    I use NFS CSI
  • h

    happy-tent-70860

    02/08/2023, 9:00 AM
    Hello everybody! Can we run multiple fleet-controllers? Our current fleet controller is eating up a lot of resources, and we wonder if increasing the number of replicas of the controller would help?
  • a

    ambitious-plastic-3551

    02/08/2023, 10:44 AM
    Fleet + Kustomization + PVC yaml seems to delete on pod crash or OOMKill, I'm still testing if it's true
  • m

    mammoth-postman-10874

    02/08/2023, 12:07 PM
    Howdy, I’m trying to run fleet-0.6-rc.2 and agent deploy stuck in redeploy loop. Fleet is standalone and cluster is local. Anybody have a workaround? This is not an upgrade but just a new installation. I suspect issue is here: https://github.com/rancher/fleet/blob/master/pkg/controllers/cluster/import.go#L94 as I don’t see spec.DeployedGeneration isn’t set
    b
    i
    • 3
    • 18
  • v

    victorious-twilight-28734

    02/08/2023, 4:45 PM
    Is there any way to turn off polling the GitRepo? With a webhook, the polling should not be required, right? This: https://fleet.rancher.io/webhook says:
  • m

    many-area-51777

    02/10/2023, 2:27 PM
    I am playing with fleet's test mode
    fleet test
    and I want to pass labels to it, but something doesn't work. I have created a
    fleet.yaml
    and running this command:
    docker run \
       -it \
       -v `pwd`:/manifests \
       --rm \
       --name fleet \
       --entrypoint sh rancher/fleet-agent:v0.3.9 \
       -c "cd /manifests && fleet \
       --debug test \
       -t devmode \
       -l env=dev"
    but it's like
    env=dev
    is not being set. Also, is it possible to set it so that
    global.fleet.clusterLabels.env
    will turn to
    dev
    ?
  • b

    billowy-apple-60989

    02/10/2023, 3:38 PM
    I’m trying to setup a repo that will contain the base-config of our 30+ downstream clusters, however i’m facing some issues when trying to deploy Helm charts along our normal “static” manifests. Currently we use the Kustomize approach with a number of servicemonitors, prometheusrules etc as described here: https://github.com/rancher/fleet-examples/tree/master/multi-cluster/kustomize Now we would also like this repo to contain/deploy some external Helm Chart like
    loki-stack
    and
    rancher-monitoring
    , sort of like this: https://github.com/rancher/fleet-examples/blob/master/multi-cluster/helm-external/fleet.yaml Is it possible to combine these into one Repo that fleet can use to deploy “everything” ? Or do you need seperate “Kustomize Repo” and “Helm Chart Repo” ? Thanks
    m
    • 2
    • 3
  • a

    astonishing-telephone-88536

    02/13/2023, 2:31 AM
    Is it possible to do manual sync by disabling downstream clusters doing polling?
  • m

    many-evening-49066

    02/13/2023, 4:07 PM
    Is there a way of configuring prometheus alerts or slack notifications when a GitRepo state is different from "READY/ACTIVE"? E.g. when it is "Modified" or "Err" send a slack notification
  • b

    bulky-lion-74983

    02/16/2023, 8:18 PM
    I am trying to use multiple yaml files in my helm chart depending on the environment. I have a fleet.yaml and a GitRepo like this and am trying to edit the GitRepo but keep getting an error inside Rancher. When I make the change in Rancher it gives me this error: Operation cannot be fulfilled on gitrepos.fleet.cattle.io "logapi-dev": the object has been modified; please apply your changes to the latest version and try again Does anyone know what I am doing wrong?
    targetCustomizations:
    - name: development
      helm:
        valuesFiles:
        - development.yaml
      clusterName: alphadev
    
    - name: staging
      helm:
        valuesFiles:
        - staging.yaml
      clusterName: alphadev
    
    - name: production
      helm:
        valuesFiles:
        - values.yaml
      clusterName: alphadev
    
    From
    targets:
      - clusterName: alphadev
    
    To
    targets:
      - name: development
      clusterName: alphadev
    • 1
    • 1
  • a

    ancient-furniture-29084

    02/17/2023, 12:54 AM
    Hello all, I have Rancher 2.7.1 running on a GKE cluster, and am attempting to add the first Git repo to Continous Delivery/Fleet. After getting through some SSH auth issues, seems like it’s able to check out the repository fine, but it is not creating any bundles or resources. The fleet.yaml in the repository is pretty simple.
    kind: GitRepo
    apiVersion: <http://fleet.cattle.io/v1alpha1|fleet.cattle.io/v1alpha1>
    metadata:
      name: simple
      namespace: fleet-local
    spec:
      repo: <https://github.com/rancher/fleet-examples>
      paths:
      - simple
    Any suggestions on how to troubleshoot this? The UI shows no errors, and the step-git-source container in the gitrepo pod shows it successfully cloned the repository.
    c
    • 2
    • 1
  • c

    careful-mouse-48712

    02/18/2023, 4:44 PM
    Not 100% sure, but did you select a 'target' in the GitRepo too? This might help: https://fleet.rancher.io/gitrepo-targets
  • w

    worried-shoe-35335

    02/20/2023, 4:45 PM
    We are using fleet do deploy a few basic infrastructure apps to our clusters. Although we are using GKE with Kubernetes 1.24.9, we get the following error in fleet:
    Chart requires kubeVersion: >= 1.21.0-0 which is incompatible with Kubernetes v1.20.0
    Any ideas how to resolve this issue? Why does Helm (?) think that is running against K8s 1.20?!
    • 1
    • 1
  • c

    careful-mouse-48712

    02/20/2023, 4:59 PM
    I do have a GitRepo with 3 paths, 1*helmchart, 2*kustomize. Is it normal that fleet creates a helmchart (or at least a helm-secret) for each of the kustomize-folders?
  • d

    dazzling-chef-87126

    02/21/2023, 10:04 AM
    Hi, I'm unable to edit a GitRepo configuration because the resource version continuously changes. Have you experienced this? How can I edit the GitRepo without recreate it?
  • w

    wide-magician-63081

    02/21/2023, 3:42 PM
    Hello everybody, I'm contacting you because I'm trying to set up Keda and as usual I want to use Fleet to deploy its objects. Keda is installed (still KubeVersion problem but that's not the topic here. I deployed a fleet that contains a helm chart of a project of mine with, among other things, two deployments and 2 ScaledObject. Just like the HPAs, Keda modifies the replicas so I added a diff in fleet and it works fine. On the other hand, ScaledObject objects have an “Activating” status when the trigger is pending. This is a normal status (from what I understand). But Rancher sees it in error on its UI and the bundle is also in error.
    NotReady(1) [Bundle ebad]; scaledobject.keda.sh ebad-ma7/ebad-back error] Scaling is not performed because triggers are not active, Resource is Ready; scaledobject.keda.sh ebad-ma7/ebad-back modified {"spec":{"triggers":[{"metadata":{"desiredReplicas":"2","end":"35 14 * * *","start":"29 14 * * *","timezone":"Europe/Paris"},"type":"cron"}]}}; scaledobject.keda.sh ebad-ma7/ebad-front error] Scaling is not performed because triggers are not active, Resource is Ready
    Is there a way to ignore this type of status? I think it's related to this issue: https://github.com/rancher/fleet/issues/937
    c
    i
    +2
    • 5
    • 14
  • m

    mammoth-postman-10874

    02/24/2023, 4:25 PM
    is there a way to patch resource coming from a helm chart with kustomize?
    • 1
    • 1
  • a

    ambitious-plastic-3551

    02/27/2023, 5:50 PM
    Question... it has occurred now many times that resources delete (on sync) and cause rewrite of resources?? causes some downtime, it is also possible that on sync resources are not available and hence it happens, is there any threshold?
  • i

    important-kitchen-32874

    02/27/2023, 8:21 PM
    Hi folks! I was reading over the Fleet documentation regarding how a
    GitRepo
    is mapped to clusters, as well as the
    ClusterGroup
    concepts, and they're both using label selectors if I'm not mistaken. I'm wondering - is there a doc or proposal for how Fleet manages the case where the set of clusters matching the label selector changes? In "normal" kube, e.g. a
    NodeSelector
    will allow for transparent selection, movement, re-scheduling, etc - is that also what happens in Fleet?
  • a

    ambitious-plastic-3551

    02/27/2023, 9:18 PM
    it syncs indeed, occasionally
  • i

    important-kitchen-32874

    02/27/2023, 10:20 PM
    Sorry, not sure my question was phrased well - for instance, if I have some
    GitRepo
    that should select
    region=us-west,cloud=aws,machine-type=xxl
    or whatever, will I get instant failover if a cluster in that
    ClusterGroup
    goes down? Is there anything that balances out the usage of the group so, as an admin providing these clusters, I have less maintenance to do?
  • s

    salmon-train-47748

    03/01/2023, 9:58 PM
    Has anyone used fleet to deploy the Rancher applications (https://git.rancher.io/charts) across multiple downstream clusters? I'm particularly interested in trying to roll out Rancher CIS Benchmarking.
    w
    d
    s
    • 4
    • 7
  • s

    steep-furniture-72588

    03/03/2023, 10:58 AM
    I am working on a rancher implementation v2.69 with fleet. In the gitrepo object I have it pointing to a cluster group. In the git repo I have a few bundles. What I am trying to do is have a bundle only applied to a certain cluster. The documentation is not clear on how this is done. I could create multiple git repo of the same git project and define it differently but I was wondering if there is a way I could further enhance the filter through fleet.yaml in the bundle that it resides in
Powered by Linen
Title
s

steep-furniture-72588

03/03/2023, 10:58 AM
I am working on a rancher implementation v2.69 with fleet. In the gitrepo object I have it pointing to a cluster group. In the git repo I have a few bundles. What I am trying to do is have a bundle only applied to a certain cluster. The documentation is not clear on how this is done. I could create multiple git repo of the same git project and define it differently but I was wondering if there is a way I could further enhance the filter through fleet.yaml in the bundle that it resides in
View count: 19