How to enable TTLAfterFinished in the api server?

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?

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


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:

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:


John Kwiatkoski Senior Developer Support Engineer