This error occurs when the job cleanup strategy (TTL configuration) is invalid or misconfigured, preventing the job from being properly managed or garbage collected.
The "Job TTL strategy error" indicates a problem with the job's time-to-live (TTL) configuration.
kubectl get job <name> -o yaml | grep -A5 ttl
TTL must be non-negative integer or null
kubectl patch job <name> -p '{"spec":{"ttlSecondsAfterFinished":3600}}'
kubectl describe job <name>
Feature stable since Kubernetes 1.23. Check node clock accuracy if cleanup timing is off.
kubectl logs -n kube-system deployment/job-controller