Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPProbe ¶ added in v0.8.0
func HTTPProbe(config HTTPProbeConfigOptions) error
HTTPProbe checks that HTTP connection can be established to the address.
func ProbeHandler ¶ added in v0.19.0
func ProbeHandler(prober func() bool, tracingEnabled bool) http.HandlerFunc
ProbeHandler returns a http.HandlerFunc that responds to health checks. This handler assumes the Knative Probe Header will be passed.
func TCPProbe ¶
func TCPProbe(config TCPProbeConfigOptions) error
TCPProbe checks that a TCP socket to the address can be opened. Did not reuse k8s.io/kubernetes/pkg/probe/tcp to not create a dependency on klog.
Types ¶
type HTTPProbeConfigOptions ¶ added in v0.8.0
type HTTPProbeConfigOptions struct { Timeout time.Duration *corev1.HTTPGetAction KubeMajor string KubeMinor string MaxProtoMajor int }
HTTPProbeConfigOptions holds the HTTP probe config options
type TCPProbeConfigOptions ¶ added in v0.8.0
TCPProbeConfigOptions holds the TCP probe config options
Click to show internal directories.
Click to hide internal directories.