I upgraded the Fleet installation in the cattle-fleet-system namespace to version fleet:108.0.0+up0.14.0 using the following values file:
affinity: {}
agent:
leaderElection:
leaseDuration: 60s
renewDeadline: 20s
retryPeriod: 10s
reconciler:
workers:
bundledeployment: '1'
drift: '1'
replicas: 1
agentCheckinInterval: 30m
agentImage:
imagePullPolicy: IfNotPresent
repository: rancher/fleet-agent
tag: v0.14.0
agentTLSMode: system-store
apiServerCA: |-
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
apiServerURL: https://server.k3
bootstrap:
agentNamespace: cattle-fleet-local-system
branch: ''
enabled: false
namespace: ''
paths: ''
repo: ''
secret: ''
controller:
reconciler:
workers:
bundle: '1'
bundledeployment: '1'
cluster: '1'
clustergroup: '1'
gitrepo: '1'
imagescan: '1'
schedule: '1'
replicas: 1
disableDefaultCluster: true
disableLocalCluster: true
debug: ''
debugLevel: 0
disableSecurityContext: false
garbageCollectionInterval: 15m
gitClientTimeout: 120s
gitjob:
replicas: 1
gitops:
enabled: true
syncPeriod: 2h
global:
cattle:
systemProjectId: p-bd46g
helmops:
enabled: false
replicas: 1
ignoreClusterRegistrationLabels: false
image:
imagePullPolicy: IfNotPresent
repository: rancher/fleet
tag: v0.14.0
insecureSkipHostKeyChecks: false
leaderElection:
leaseDuration: 60s
renewDeadline: 20s
retryPeriod: 10s
metrics:
enabled: true
migrations:
clusterRegistrationCleanup: true
gitrepoJobsCleanup: true
noProxy: 127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,.svc,.cluster.local
nodeSelector: {}
priorityClassName: rancher-critical
propagateDebugSettingsToAgents: true
resources: {}
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
operator: Equal
value: 'true'
- effect: NoExecute
key: node-role.kubernetes.io/etcd
operator: Equal
After applying this configuration, the Fleet agent deployment is being reinstalled every few minutes.
Additionally, Fleet keeps triggering the bootstrap installation even though bootstrap is explicitly disabled in the configuration.
The Fleet agent should remain stable and should not be redeployed every few minutes. Once the agent is deployed and connected, it should continue running without being recreated or restarted by the system.
- Architecture: x86-64
- Fleet Version: v0.14.0
- Cluster:
- Provider: K3S
- Kubernetes Version: v1.32.10 +k3s1
Agent logs with the redeploy
I1211 13:05:25.515405 1 leaderelection.go:257] attempting to acquire leader lease cattle-fleet-local-system/fleet-agent...
{"level":"info","ts":"2025-12-11T13:05:25Z","logger":"setup","msg":"new leader","identity":"fleet-agent-5f9b4c7f4c-jp8m4-1"}
I1211 13:06:28.941902 1 leaderelection.go:271] successfully acquired lease cattle-fleet-local-system/fleet-agent
{"level":"info","ts":"2025-12-11T13:06:28Z","logger":"setup","msg":"renewed leader","identity":"fleet-agent-5f9b4c7f4c-w5l4j-1"}
time="2025-12-11T13:06:28Z" level=warning msg="Cannot find fleet-agent secret, running registration"
time="2025-12-11T13:06:28Z" level=info msg="Creating clusterregistration with id '89h9gdlqrzvtl7dmvdcdwgq2nvv9r4x8zpmsl8dshzdml2fs629rsm' for new token"
time="2025-12-11T13:06:31Z" level=info msg="Waiting for secret 'cattle-fleet-clusters-system/c-e079af68e897baf118b4f5c7cb397f3723c831f118877af044059c9ddf5b3' on management cluster for request 'fleet-local/request-l9qll': secrets \"c-e079af68e897baf118b4f5c7cb397f3723c831f118877af044059c9ddf5b3\" not found"
{"level":"info","ts":"2025-12-11T13:06:33Z","logger":"setup","msg":"successfully registered with upstream cluster","namespace":"cluster-fleet-local-local-1a3d67d0a899"}
{"level":"info","ts":"2025-12-11T13:06:33Z","logger":"setup","msg":"listening for changes on upstream cluster","cluster":"local","namespace":"cluster-fleet-local-local-1a3d67d0a899"}
{"level":"info","ts":"2025-12-11T13:06:33Z","logger":"setup","msg":"Starting controller","metricsAddr":":8080","probeAddr":":8081","systemNamespace":"cattle-fleet-local-system"}
{"level":"info","ts":"2025-12-11T13:06:33Z","logger":"setup","msg":"starting manager"}
{"level":"info","ts":"2025-12-11T13:06:33Z","logger":"controller-runtime.metrics","msg":"Starting metrics server"}
{"level":"info","ts":"2025-12-11T13:06:33Z","msg":"starting server","name":"health probe","addr":"[::]:8081"}
{"level":"info","ts":"2025-12-11T13:06:33Z","logger":"controller-runtime.metrics","msg":"Serving metrics server","bindAddress":":8080","secure":false}
{"level":"info","ts":"2025-12-11T13:06:33Z","logger":"setup","msg":"Starting cluster status ticker","checkin interval":"30m0s","cluster namespace":"fleet-local","cluster name":"local"}
{"level":"info","ts":"2025-12-11T13:06:33Z","msg":"Starting EventSource","controller":"bundledeployment","controllerGroup":"fleet.cattle.io","controllerKind":"BundleDeployment","source":"kind source: *v1alpha1.BundleDeployment"}
{"level":"info","ts":"2025-12-11T13:06:33Z","msg":"Starting EventSource","controller":"drift-reconciler","source":"channel source: 0xc0002797a0"}
{"level":"info","ts":"2025-12-11T13:06:33Z","msg":"Starting Controller","controller":"drift-reconciler"}
{"level":"info","ts":"2025-12-11T13:06:33Z","msg":"Starting workers","controller":"drift-reconciler","worker count":1}
{"level":"info","ts":"2025-12-11T13:06:33Z","msg":"Starting Controller","controller":"bundledeployment","controllerGroup":"fleet.cattle.io","controllerKind":"BundleDeployment"}
{"level":"info","ts":"2025-12-11T13:06:33Z","msg":"Starting workers","controller":"bundledeployment","controllerGroup":"fleet.cattle.io","controllerKind":"BundleDeployment","worker count":1}
time="2025-12-11T13:08:28Z" level=warning msg="signal received: \"terminated\", canceling context..."
{"level":"info","ts":"2025-12-11T13:08:28Z","msg":"Stopping and waiting for non leader election runnables"}
{"level":"info","ts":"2025-12-11T13:08:28Z","logger":"setup","msg":"termination requested, exiting"}
{"level":"info","ts":"2025-12-11T13:08:28Z","msg":"Stopping and waiting for leader election runnables"}
The cluster is active and all bundles are deployed correctly.
After the agent reconnects, the cluster disconnects again. A few minutes or even seconds later, the cycle repeats:
Is there an existing issue for this?
Current Behavior
I upgraded the Fleet installation in the cattle-fleet-system namespace to version fleet:108.0.0+up0.14.0 using the following values file:
After applying this configuration, the Fleet agent deployment is being reinstalled every few minutes.
Additionally, Fleet keeps triggering the bootstrap installation even though bootstrap is explicitly disabled in the configuration.
Expected Behavior
The Fleet agent should remain stable and should not be redeployed every few minutes. Once the agent is deployed and connected, it should continue running without being recreated or restarted by the system.
Steps To Reproduce
No response
Environment
Logs
Anything else?
The cluster is active and all bundles are deployed correctly.
Suddenly, the kubelet redeploys the Fleet agent deployment:
After the agent reconnects, the cluster disconnects again. A few minutes or even seconds later, the cycle repeats:
Maybe same problem: https://slack-archive.rancher.com/t/32726079/hi-all-since-a-few-days-we-ve-noticed-that-our-fleet-agent-i