Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultCoolDownTime = 2 * time.Minute DefaultHealthCheckTimeout = 10 * time.Second CmdTimeout = 10 * time.Second LogParsingTimeLayout = "2006-01-02 15:04:05" KubeletComponent = "kubelet" CRIComponent = "cri" DockerComponent = "docker" ContainerdService = "containerd" KubeProxyComponent = "kube-proxy" KubeletHealthCheckEndpoint = "http://127.0.0.1:10248/healthz" KubeProxyHealthCheckEndpoint = "http://127.0.0.1:10256/healthz" LogPatternFlagSeparator = ":" )
View Source
const ( DefaultCriCtl = "/usr/bin/crictl" DefaultCriSocketPath = "unix:///var/run/containerd/containerd.sock" UptimeTimeLayout = "Mon 2006-01-02 15:04:05 MST" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthChecker ¶
type LogPatternFlag ¶ added in v0.8.7
type LogPatternFlag struct {
// contains filtered or unexported fields
}
LogPatternFlag defines the flag for log pattern health check. It contains a map of <log pattern> to <failure threshold for the pattern>
func (*LogPatternFlag) GetLogPatternCountMap ¶ added in v0.8.7
func (lpf *LogPatternFlag) GetLogPatternCountMap() map[string]int
GetLogPatternCountMap returns the stored log count map
func (*LogPatternFlag) Set ¶ added in v0.8.7
func (lpf *LogPatternFlag) Set(value string) error
Set implements the Set function for flag.Value interface
func (*LogPatternFlag) String ¶ added in v0.8.7
func (lpf *LogPatternFlag) String() string
String implements the String function for flag.Value interface Returns a space separated sorted by keys string of map values.
func (*LogPatternFlag) Type ¶ added in v0.8.7
func (lpf *LogPatternFlag) Type() string
Type implements the Type function for flag.Value interface
Click to show internal directories.
Click to hide internal directories.