kubernetes: Cannot get TTLAfterFinished to work in 1.12.1
What happened: Trying to enable the TTLAfterFinished feature gate to use the Job cleanup feature, and the feature does not work after enabling. What you expected to happen: The Job to be deleted 100s after hitting the Completed state. How to reproduce it (as minimally and precisely as possible): I added the following to the api-server and controller manifests: –feature-gates=“TTLAfterFinished=true” After a restart, both show the item present. Then launched a Job with “ttlSecondsAfterFinished: 100” set under .spec. Anything else we need to know?:
Environment:
- Kubernetes version (use
kubectl version): 1.12.1 - Cloud provider or hardware configuration: Bare metal
- OS (e.g. from /etc/os-release): Ubuntu 18.04
- Kernel (e.g.
uname -a): 4.15.0-34-generic - Install tools: kubespray
- Others:
/kind bug
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (5 by maintainers)
TTLAfterFinishednot working for me either. Am I doing it right?Could it be that I have quotes around the feature-gate?
Also: https://github.com/kubernetes/minikube/issues/3805
It does seem to work for me:
(where
my-cron.ymlcontainsttlSecondsAfterFinished)