Interface ProbeOptions

    • Method Detail

      • getFailureThreshold

        @Stability(Stable)
        @Nullable
        default Number getFailureThreshold()
        Minimum consecutive failures for the probe to be considered failed after having succeeded.

        Defaults to 3. Minimum value is 1.

        Default: 3

      • getInitialDelaySeconds

        @Stability(Stable)
        @Nullable
        default org.cdk8s.Duration getInitialDelaySeconds()
        Number of seconds after the container has started before liveness probes are initiated.

        Default: - immediate

      • getPeriodSeconds

        @Stability(Stable)
        @Nullable
        default org.cdk8s.Duration getPeriodSeconds()
        How often (in seconds) to perform the probe.

        Default to 10 seconds. Minimum value is 1.

        Default: Duration.seconds(10) Minimum value is 1.

      • getSuccessThreshold

        @Stability(Stable)
        @Nullable
        default Number getSuccessThreshold()
        Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1.

        Must be 1 for liveness and startup. Minimum value is 1.

        Default: 1 Must be 1 for liveness and startup. Minimum value is 1.

      • getTimeoutSeconds

        @Stability(Stable)
        @Nullable
        default org.cdk8s.Duration getTimeoutSeconds()
        Number of seconds after which the probe times out.

        Defaults to 1 second. Minimum value is 1.

        Default: Duration.seconds(1)