elastic icon indicating copy to clipboard operation
elastic copied to clipboard

Kubernetes: ttlSecondsAfterFinished not working in ElasticJob spec

Open jovan-absci opened this issue 4 years ago • 0 comments

🐛 Bug

I specify ttlSecondsAfterFinished in my ElasticJob spec like so:

kind: ElasticJob
metadata:
  name: job1
  namespace: username
spec:
  rdzvEndpoint: "etcd0.elastic-job:2379"
  minReplicas: 1
  maxReplicas: 1
  ttlSecondsAfterFinished: 10

When I inspect the elastic job yaml after it's created I see that ttlSecondsAfterFinished is not present under spec key at all, resulting in my pods remaining in my namespace until I delete them manually.

Component (check all that applies):

  • [ ] state api
  • [ ] train_step api
  • [ ] train_loop
  • [ ] rendezvous
  • [ ] checkpoint
  • [ ] rollback
  • [ ] metrics
  • [ ] petctl
  • [ ] examples
  • [ ] docker
  • [x] other

jovan-absci avatar Jan 17 '22 14:01 jovan-absci