I’m trying to auto clean my jobs after finishing and I need to set TTLAfterFinished to true in the api server (documentation).
Since Digital Ocean created the api server on it’s own, I’m not sure how to modify it. How can I do it?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi,
The master API arguments and settings are managed by DO and can not be changed unfortunately. See our documentation here for the current feature gates enabled: https://www.digitalocean.com/docs/kubernetes/resources/managed/#managed-elements-of-the-master-nodes
We are always open to customer feedback on master and kubelet settings.
There are other ways that you can achieve this sort of behavior without modifying the master API. If your jobs are created via Kubernetes CronJobs you can set history limits to only keep a certain amount of successful or failed jobs: https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#jobs-history-limits
Regards,
John Kwiatkoski Senior Developer Support Engineer
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.