Skip to content

Instantly share code, notes, and snippets.

@mikedanese
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikedanese/a29cd0272df2aa5ebea7 to your computer and use it in GitHub Desktop.
Save mikedanese/a29cd0272df2aa5ebea7 to your computer and use it in GitHub Desktop.
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