This is a cache of https://docs.openshift.com/container-platform/4.16/nodes/pods/run_once_duration_override/index.html. It is a snapshot of the page at 2025-02-11T09:57:28.104+0000.
Run Once Duration Override Operator overview - Working with <strong>pod</strong>s | Nodes | OpenShift Container Platform 4.16
×

You can use the Run Once Duration Override Operator to specify a maximum time limit that run-once pods can be active for.

About the Run Once Duration Override Operator

OpenShift Container Platform relies on run-once pods to perform tasks such as deploying a pod or performing a build. Run-once pods are pods that have a RestartPolicy of Never or OnFailure.

Cluster administrators can use the Run Once Duration Override Operator to force a limit on the time that those run-once pods can be active. After the time limit expires, the cluster will try to actively terminate those pods. The main reason to have such a limit is to prevent tasks such as builds to run for an excessive amount of time.

To apply the run-once duration override from the Run Once Duration Override Operator to run-once pods, you must enable it on each applicable namespace.

If both the run-once pod and the Run Once Duration Override Operator have their activeDeadlineSeconds value set, the lower of the two values is used.