add related note with pod deleted (#14709)

* 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
This commit is contained in:
fudali 2019-06-11 09:34:16 +08:00 committed by Kubernetes Prow Robot
parent 04f568d3a0
commit b237842659
1 changed files with 6 additions and 0 deletions

View File

@ -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