-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
live-EKS automatically remove completed Kubernetes Jobs created by a CronJob #3055
Comments
Because ttlSecondsAfterFinished will not be considered there is a much need for deleting completed jobs as a garbage collection. if users use cronjob they can setup failedJobsHistoryLimit and successfulJobsHistoryLimit which we need to respect and not delete those using the delete-completed-jobs pipeline. Currently all jobs are deleted irrespective of whether it is owned by cronjob or not. By default the fields have these values For the ".spec.successfulJobsHistoryLimit" and ".spec.failedJobsHistoryLimit fields", it works based on the restartPolicy and BackoffLimit. The job is set to be failed based on these other parameters. When testing these fields in EKS it works as expected and seen the similar behaviour as in the kops test cluster. |
After discussing with the team we have decided
|
This page needs amending after everyone moved to EKS: |
When users create cronjobs, we do clean-up by completed Jobs that cleans up the Pods they create, which helps the Kubernetes cluster to use its CPU and memory resources efficiently.
This ticket is to work on the below 3 issues related to clean up in eks-live.
https://user-guide.cloud-platform.service.justice.gov.uk/documentation/other-topics/Cronjobs.html#deploying-a-cronjob-to-your-namespace.
Issue related to it:
aws/containers-roadmap#255
Investigate if there are any workarounds or should we wait until v1.20 and communicate to users before migration to EKS-Live.
Set up this job in eks-live cluster.
Try to set up a corn job with these fields and figure out why they are not working on EKS as it is working on live-1
The text was updated successfully, but these errors were encountered: