Skip to content

Commit

Permalink
add related note with pod deleted (#14709)
Browse files Browse the repository at this point in the history
* feat: add job application has some error and restartPolicy is not Nerver pod will be delete note

* feat: optimize delete pods related suggestion

* Update jobs-run-to-completion.md
  • Loading branch information
fudali authored and k8s-ci-robot committed Jun 11, 2019
1 parent 04f568d commit b237842
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ status check.
{{< note >}}
Issue [#54870](https://github.com/kubernetes/kubernetes/issues/54870) still exists for versions of Kubernetes prior to version 1.12
{{< /note >}}
{{< note >}}
If your job has `restartPolicy = "OnFailure"`, keep in mind that your container running the Job
will be terminated once the job backoff limit has been reached. This can make debugging the Job's executable more difficult. We suggest setting
`restartPolicy = "Never"` when debugging the Job or using a logging system to ensure output
from failed Jobs is not lost inadvertently.
{{< /note >}}

## Job Termination and Cleanup

Expand Down

0 comments on commit b237842

Please sign in to comment.