elastic
elastic copied to clipboard
Kubernetes: ttlSecondsAfterFinished not working in ElasticJob spec
🐛 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