kubernetes: Job failure back-off delay and limit are not configurable
What happened?
The job failure back-off parameters are computed based on the hardcoded constants in job controller. There is no way to override these back-off parameters at Job level
What did you expect to happen?
The user should have the ability to provide back-off parameters as part of the Job Spec
How can we reproduce it (as minimally and precisely as possible)?
NA
Anything else we need to know?
No response
Kubernetes version
NA
Cloud provider
NA
OS version
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here
# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, …) and versions (if applicable)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 27 (19 by maintainers)
cc @kaisoz who is interested in implementing it once we decide on the approach
I suppose users don’t need per-job control, I was looking for a solution to reduce runtime of e2e tests, and piggybacked on this old issue 😃.
For the e2e runtime use-case reducing the default base in code to 1s would be great. Maybe @soltysh knows what was the reason for 10s.
Assuming we go with reducing the default base, the question remains if we need some safety mechanism for users who would rely on 10s (TBH I doubt anyone relied on this as pointed out by Aldo above), and if so, what do we choose: a feature gate or kube-controller-manager option. Does adding a new kube-controller-manager option require a KEP from the process perspective?
Yeah, that could be enough as well. Although I am not sure what was the reasoning behind the 10s originally.
Usually the args go hand in hand with the config.