File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
content/zh/docs/concepts/workloads/controllers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -441,13 +441,13 @@ other Pods for the Job failing around that time.
441
441
当 Job 的 Pod 被删除时,或者 Pod 成功时没有其它 Pod 处于失败状态,失效回退的次数也会被重置(为 0)。
442
442
443
443
<!--
444
- If your job has `restartPolicy = "OnFailure"`, keep in mind that your container running the Job
444
+ If your job has `restartPolicy = "OnFailure"`, keep in mind that your Pod running the Job
445
445
will be terminated once the job backoff limit has been reached. This can make debugging the Job's executable more difficult. We suggest setting
446
446
`restartPolicy = "Never"` when debugging the Job or using a logging system to ensure output
447
447
from failed Jobs is not lost inadvertently.
448
448
-->
449
449
{{< note >}}
450
- 如果你的 Job 的 ` restartPolicy ` 被设置为 "OnFailure",就要注意运行该 Job 的容器
450
+ 如果你的 Job 的 ` restartPolicy ` 被设置为 "OnFailure",就要注意运行该 Job 的 Pod
451
451
会在 Job 到达失效回退次数上限时自动被终止。
452
452
这会使得调试 Job 中可执行文件的工作变得非常棘手。
453
453
我们建议在调试 Job 时将 ` restartPolicy ` 设置为 "Never",
You can’t perform that action at this time.
0 commit comments