probes

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetProbes

func SetProbes(port int, disableNonTLSListeners bool, config ProbeConfig) (*v1.Probe, *v1.Probe, error)

SetProbes - configures and returns liveness and readiness probes based on the provided settings

Types

type ProbeConfig

type ProbeConfig struct {
	LivenessPath        string
	ReadinessPath       string
	InitialDelaySeconds int32
	TimeoutSeconds      int32
	PeriodSeconds       int32
}

ProbeConfig - the configuration for liveness and readiness probes LivenessPath - Endpoint path for the liveness probe ReadinessPath - Endpoint path for the readiness probe InitialDelaySeconds - Number of seconds after the container starts before liveness/readiness probes are initiated TimeoutSeconds - Number of seconds after which the probe times out PeriodSeconds - How often (in seconds) to perform the probe

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL