prometheus operator v0.93.1

PrometheusAgent.spec.initContainers.resources.limits.[key].spec.containers.restartPolicyRules

Represents a list of rules to be checked to determine if the container should be restarted on exit. The rules are evaluated in order. Once a rule matches a container exit condition, the remaining rules are ignored. If no rule matches the container exit condition, the Container-level restart policy determines the whether the container is restarted or not. Constraints on the rules: - At most 20 rules are allowed. - Rules can have the same action. - Identical rules are not forbidden in validations. When rules are specified, container MUST set RestartPolicy explicitly even it if matches the Pod's RestartPolicy.

2 fields
PrometheusAgent.spec.initContainers.resources.limits.[key].spec.containers.restartPolicyRules fields and descriptions
Field / TypeDescription
action
string required

Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is "Restart" to restart the container.

object

Represents the exit codes to check on container exits.