Class PodFailurePolicy.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • rules

        @Stability(Stable)
        public PodFailurePolicy.Builder rules​(List<? extends PodFailurePolicyRule> rules)
        Sets the value of PodFailurePolicy.getRules()
        Parameters:
        rules - A list of pod failure policy rules. This parameter is required. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.
        Returns:
        this