health

package
v0.39.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 22 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCProbe added in v0.39.0

func GRPCProbe(config GRPCProbeConfigOptions) error

GRPCProbe checks that gRPC connection can be established to the address.

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 GRPCProbeConfigOptions added in v0.39.0

type GRPCProbeConfigOptions struct {
	Timeout time.Duration
	*corev1.GRPCAction
	KubeMajor string
	KubeMinor string
}

GRPCProbeConfigOptions holds the gRPC probe config options

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

type TCPProbeConfigOptions struct {
	SocketTimeout time.Duration
	Address       string
}

TCPProbeConfigOptions holds the TCP probe config options

Jump to

Keyboard shortcuts

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