pub trait ProbeExt {
    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

HTTP get probe

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

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

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.

Implementors