package probe
import "k8s.io/kubernetes/pkg/probe"
Package probe contains utilities for health probing, as well as health status information.
Index ¶
- func ProbeDialer() *net.Dialer
- func ResolveContainerPort(param intstr.IntOrString, container *v1.Container) (int, error)
- type Result
Functions ¶
func ProbeDialer ¶
ProbeDialer returns a dialer optimized for probes to avoid lingering sockets on TIME-WAIT state. The dialer reduces the TIME-WAIT period to 1 seconds instead of the OS default of 60 seconds. Using 1 second instead of 0 because SO_LINGER socket option to 0 causes pending data to be discarded and the connection to be aborted with an RST rather than for the pending data to be transmitted and the connection closed cleanly with a FIN. Ref: https://issues.k8s.io/89898
func ResolveContainerPort ¶
Types ¶
type Result ¶
type Result string
Result is a string used to handle the results for probing container readiness/liveness
const ( // Success Result Success Result = "success" // Warning Result. Logically success, but with additional debugging information attached. Warning Result = "warning" // Failure Result Failure Result = "failure" // Unknown Result Unknown Result = "unknown" )
Source Files ¶
dialer_others.go doc.go probe.go util.go
Directories ¶
Path | Synopsis |
---|---|
pkg/probe/exec | |
pkg/probe/grpc | |
pkg/probe/http | |
pkg/probe/tcp |
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 3 hours ago –
Tools for package owners.