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
  • o

    orange-barista-66154

    08/10/2022, 5:06 PM
    Really glad the instructions on the fleet docs site are just wrong..
  • o

    orange-barista-66154

    08/10/2022, 5:06 PM
    helpful
  • f

    fast-family-67084

    08/11/2022, 8:12 AM
    I have been seeing a similar issue in Rancher 2.6. if you force an update in the GUI it will get the correct state. It seems like there is some kind of bug in fleet whereby sometimes the Rancher server is not correctly updated with fresh status from downstream cluster.
    • 1
    • 2
  • f

    freezing-holiday-13112

    08/11/2022, 9:48 PM
    What are the firewall requirements for fleet agent? I get this error on one of my isolated downstream clusters Internal error occurred: failed calling webhook "webhook.cert-manager.io": Post "https://cert-manager-webhook.cert-system.svc:443/mutate?timeout=10s": dial tcp <ip-address>:443: connect: connection refused
  • w

    white-crayon-50193

    08/14/2022, 7:23 AM
    I am sorry if this is a dumb question, and I have spent a long time searching to find an answer. But..... I have a bunch of helm charts in a GitHub repo. They have not been compressed or processed, just the raw folders and yaml files. I have now, in the fleet repo created a folder and placed a fleet.yaml in it.
    svc1-
             chart.yaml
             values.yaml
             templates
                    service.yaml
    svc2 - 
             chart.yaml
             values.yaml
             templates
                    service.yaml
    I have set the helm.chart to the chart name, and the repo to the repo that contains all the charts. All repos are private. Fleet can read the fleet repo, but then when it comes to reading the helm charts from the helm chart repo I get either a 404 error, or an index.html not found error. Previously, I have been using Flex, and it had no problems with the helm repo structure. Below is a sample of my fleet.yaml, perhaps someone can tell me what I am doing wrong.
    namespace: manager
    helm:
      chart: svc1
      repo: <https://github.com/xxx/helm_repos>
    targetCustomizations:
    
    - name: office
      helm:
        values:
          deployment:
          tag: 1.1.16
  • l

    loud-belgium-84462

    08/15/2022, 3:53 AM
    👋 Hello, team!
  • l

    loud-belgium-84462

    08/15/2022, 5:06 PM
    hi i was wondering what is the branching strategy for fleet. If I have x number of applications, should we have one repo for all the applications or should we be having x repo's corresponding to each applications. Any suggestions for fleet is welcome. Also, when we define gitrepo objects in rancher again should we put as one gitrepo or nultiple gitrepo objects
    h
    p
    • 3
    • 178
  • b

    brief-helmet-23993

    08/22/2022, 7:27 AM
    Hi. We are facing some issues where fleet occasionally causes massive cpu spikes. Would LimitRange in all the namespaces used by fleet be a viable way to mitigate this problem?
  • s

    straight-fireman-71417

    08/29/2022, 3:23 PM
    Is there a way to tell fleet to not delete resources when the bundle gets deleted?
  • m

    many-area-51777

    08/31/2022, 10:07 AM
    Hey, is it possible to patch a resource that is being installed from an external helm chart? e.g I have a 3rd party helm chart installed via helm, which generates a Service resource which I'd like to update once it's created.
    b
    • 2
    • 1
  • a

    ambitious-plastic-3551

    09/01/2022, 6:39 PM
    How do you force fleet to update a deployment when image tag is always the same, and updated in the registry
  • m

    many-area-51777

    09/04/2022, 12:08 PM
    Is it possible to move a already deployed bundle from on path to another without having to uninstall it? So basically I have a git repo with ``helm/charts/a-chart` and I'd like to move it to another repository and have just
    a-chart
    . However, I don't want it to be uninstalled and reinstalled afterwards as the only change here is where it is coming from.
  • a

    ambitious-plastic-3551

    09/05/2022, 4:09 AM
    would helm annotations differ
  • a

    ambitious-plastic-3551

    09/05/2022, 6:44 PM
    huh, I added helm chart to fleet.yaml, but it doesn't deploy, but marks as successful
  • a

    ambitious-plastic-3551

    09/05/2022, 6:48 PM
    Ah found the blunder 🙂
  • n

    narrow-ghost-32021

    09/14/2022, 12:25 PM
    How does Rancher Fleet deal with bundles of the type 'Job'; since by definition they are almost entirely immutable, in ArgoCD I would set a TTL on the Job so that it can simply be run again after it is deleted by K8s itself; in Rancher Fleet it just ends up in a state 'missing' without doing anything about it (which seems entirely contrary to the purpose of GitOps through Fleet)
    q
    • 2
    • 1
  • a

    ambitious-plastic-3551

    09/14/2022, 4:35 PM
    you mean manifest Job @narrow-ghost-32021
  • a

    ambitious-plastic-3551

    09/14/2022, 4:35 PM
    Job is a one time work afaik
  • a

    abundant-camera-87627

    09/14/2022, 7:52 PM
    @ambitious-plastic-3551 Yeah a manifest for
    Kind: Job
    (I'm Jean-Philippe's colleague). Exactly because Job's are one-time, they're almost entirely immutable.
  • s

    steep-furniture-72588

    09/20/2022, 12:34 PM
    hi , I am trying to use fleet for the first time for helm charts. I have this in my logs.
    time="2022-09-20T12:26:46Z" level=error msg="error syncing 'fleet-default/teleport-cluster': handler bundle: execution error at (teleport-cluster/templates/deployment.yaml:45:28): clusterName is required in chart values, requeuing"
  • s

    steep-furniture-72588

    09/20/2022, 12:41 PM
    Further info: helm: # Use a custom location for the Helm chart. This can refer to any go-getter URL or # OCI registry based helm chart URL e.g. "oci://ghcr.io/fleetrepoci/guestbook". # This allows one to download charts from most any location. Also know that # go-getter URL supports adding a digest to validate the download. If repo # is set below this field is the name of the chart to lookup chart: teleport-cluster # A https URL to a Helm repo to download the chart from. It's typically easier # to just use
    chart
    field and refer to a tgz file. If repo is used the # value of
    chart
    will be used as the chart name to lookup in the Helm repository. repo: https://charts.releases.teleport.dev # A custom release name to deploy the chart as. If not specified a release name # will be generated. releaseName: teleport-cluster # The version of the chart or semver constraint of the chart to find. If a constraint # is specified it is evaluated each time git changes. # The version also determines which chart to download from OCI registries. version: 10.2.2 # Any values that should be placed in the
    values.yaml
    and passed to helm during # install. valuesFiles: - values.yaml # Override immutable resources. This could be dangerous. force: false # Set the Helm --atomic flag when upgrading atomic: false clusterName: prm Any help appreciated. Tia
    q
    • 2
    • 2
  • s

    steep-furniture-72588

    09/20/2022, 12:58 PM
    I should have mentioned this first. I get 0/0 clusters available
  • h

    hundreds-terabyte-36933

    09/23/2022, 6:43 PM
    Hello, I managed 200+ EKS clusters with the same app deployed on all of them. I need to customize a field in the chart values. Is there a way to refer to cluster label in the values? for instance
    - hosts [<http://clustername.google.com|clustername.google.com>,<http://clustername.subdomain.google.com|clustername.subdomain.google.com>]
    m
    • 2
    • 1
  • h

    hundreds-terabyte-36933

    09/23/2022, 6:47 PM
    how about using labels inside manifest
    apiVersion: batch/v1
    kind: Job
    
    spec:
      template:
        spec:
          containers:
          - name: gitops-jobs
            image: public.ecr.aws/.....
            command: 
              - /bin/sh
              - -c
            args: 
              - | 
    
                aws s3 mb <s3://dh>-<project_name-data>-cur;
                aws s3 mb <s3://dh>-<project_name-data>-us;
                aws s3 mb <s3://dh>-<project_name-data>-sh;  
          restartPolicy: OnFailure
    where <project_name_data> is a label on each cluster
  • q

    quick-sandwich-76600

    09/23/2022, 9:44 PM
    You can use cluster labels as variables in fleet. Have a look at https://fleet.rancher.io/gitrepo-structure/ and look for global.fleet.clusterlables and how to use it, for example, in your helm values.yaml file. I think it should fit your use case.
  • h

    hundreds-terabyte-36933

    09/24/2022, 1:05 PM
    Thanks Juan, Do they work in K8S manifests? how would I use it to replace <project_name-data> in that k8s manifest?
    q
    • 2
    • 3
  • m

    many-area-51777

    09/24/2022, 4:34 PM
    Any chance I can change a GitRepo's path, or even its repository without uninstalling it? Basically I'd like to: 1. Move
    /path/to/current
    to
    /new/path
    in the same
    GitRepo
    2. Move from
    GitRepo A
    to
    GitRepo B
    q
    • 2
    • 3
  • m

    magnificent-angle-87506

    09/27/2022, 10:05 AM
    Hello guys, can you help me with fleet-agent. when i install 0.3.11 version it give me this error.
    level=error msg="Failed to register agent: looking up secret cattle-fleet-system/fleet-agent-bootstrap: unable to load root certificates: unable to parse bytes as PEM block"
    whent install 0.3.9 it gives error about certificate unknown authority. I have used this documentation to install http://fleet.rancher.io/agent-initiated/
    q
    • 2
    • 2
  • h

    hundreds-terabyte-36933

    09/27/2022, 1:31 PM
    Hi, I am trying to create a namespace, as a first test using fleet in production. But I am having issues even with something as small as that
    time="2022-09-27T13:28:23Z" level=error msg="error syncing 'cluster-fleet-default-rezuma-main-b67ebb76fdb7/admin-jobs-daskhub-gitops-main-rezumamainjobs-templates': handler bundle-deploy: failed to create resource: namespaces \"rezuma-admin-jobs\" not found, requeuing"
    q
    • 2
    • 3
  • h

    hundreds-terabyte-36933

    09/27/2022, 1:31 PM
    any idea how to start troubleshooting that?
Powered by Linen
Title
h

hundreds-terabyte-36933

09/27/2022, 1:31 PM
any idea how to start troubleshooting that?
View count: 2