Skip to content

Instantly share code, notes, and snippets.

@mikedanese
Last active Aug 29, 2015
Embed
What would you like to do?
Probe API
type Probe struct {
HTTPGet *HTTPGetAction `json:"httpGet,omitempty"`
TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty"`
Exec *ExecAction `json:"exec,omitempty"`
}
type LivenessProbe struct {
Probe `json:",inline"`
InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty"`
}
type ReadinessProbe struct {
Probe `json:",inline"`
TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`
FrequencySeconds int64 `json:"frequencySeconds,omitempty"`
UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"`
HealthyThreshold int64 `json:"healthyThreshold,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment