pub trait ProbeExt {
    // Required methods
    fn http_get(path: impl AsRef<Path>, port: u16) -> Self;
    fn tcp_socket(port: u16) -> Self;
    fn failure_threshold(self, threshold: i32) -> Self;
    fn success_threshold(self, threshold: i32) -> Self;
    fn initial_delay_seconds(self, seconds: i32) -> Self;
    fn period_seconds(self, seconds: i32) -> Self;
    fn timeout_seconds(self, seconds: i32) -> Self;
    fn termination_grace_period_seconds(self, seconds: i64) -> Self;
}
Expand description

Builders for corev1::EnvVar objects

Required Methods§

source

fn http_get(path: impl AsRef<Path>, port: u16) -> Self

HTTP get probe

source

fn tcp_socket(port: u16) -> Self

TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported

source

fn failure_threshold(self, threshold: i32) -> Self

Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

source

fn success_threshold(self, threshold: i32) -> Self

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.

source

fn initial_delay_seconds(self, seconds: i32) -> Self

source

fn period_seconds(self, seconds: i32) -> Self

source

fn timeout_seconds(self, seconds: i32) -> Self

source

fn termination_grace_period_seconds(self, seconds: i64) -> Self

Implementors§