ContainerRestartRule
io.k8s.api.core.v1.ContainerRestartRule
source ↗
ContainerRestartRule describes how a container exit is handled.
actionstring requiredSpecifies the action taken on a container exit if the requirements are satisfied. The only possible value is "Restart" to restart the container.exitCodesContainerRestartRuleOnExitCodesRepresents the exit codes to check on container exits.
operatorstring requiredRepresents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values.- NotIn: the requirement is satisfied if the container exit code is
values[]integer (int32)Specifies the set of values to check for container exit codes. At most 255 elements are allowed.