When you try to apply some of the Job examples, you get the following error:
$ k examples Job out | k apply -f -
The Job "jobs-timeout-job" is invalid: spec.template.spec.restartPolicy: Unsupported value: "Always": supported values: "OnFailure", "Never"
When you try to apply some of the Job examples, you get the following error:
It is due to some historical k8s decision about PodTemplate defaults: See:https://github.com/kubernetes/kubernetes/issues/41194#issuecomment-278983306