Trait k8s_openapi_ext::ProbeExt
source · [−]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
sourcefn tcp_socket(port: u16) -> Self
fn tcp_socket(port: u16) -> Self
TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported
sourcefn failure_threshold(self, threshold: i32) -> Self
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.
sourcefn success_threshold(self, threshold: i32) -> Self
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.