fleet
fleet copied to clipboard
[SURE-9061] Jobs are not cleaned up from local cluster
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
In Rancher local cluster, for each commit/change in each GitRepo
, there is a Job
started by Fleet. There is nothing to clean up these Jobs, so you will quickly end up with hundreds of lingering Job
objects and their completed Pods.
I didn't notice this behavior in Fleet 0.9.x, so I assume something in 0.10.x introduced these Jobs. I was assuming this is related to automatic chart dependency update, but setting disableDependencyUpdate
to true
doesn't seem to affect.
Expected Behavior
Unnecessary Job objects are cleaned up, e.g. by setting some sane default for .spec.ttlSecondsAfterFinished
: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
Steps To Reproduce
- Install Rancher & Fleet
- Add any GitRepo and make sure it deploys
- Check rancher-local cluster. You now have lingering
Job
objects
Environment
- Architecture: x86
- Fleet Version: v0.10.2
- Cluster:
- Provider: GKE
- Options: Rancher 2.9.1
- Kubernetes Version: v1.30.4-gke.1213000
Logs
No response
Anything else?
No response