-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathv1_probe.go
38 lines (28 loc) · 1.81 KB
/
v1_probe.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Kubernetes
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: v1.10.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
// Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
type V1Probe struct {
// One and only one of the following should be specified. Exec specifies the action to take.
Exec *V1ExecAction `json:"exec,omitempty"`
// Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
FailureThreshold int32 `json:"failureThreshold,omitempty"`
// HTTPGet specifies the http request to perform.
HttpGet *V1HttpGetAction `json:"httpGet,omitempty"`
// Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
InitialDelaySeconds int32 `json:"initialDelaySeconds,omitempty"`
// How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.
PeriodSeconds int32 `json:"periodSeconds,omitempty"`
// Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.
SuccessThreshold int32 `json:"successThreshold,omitempty"`
// TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported
TcpSocket *V1TcpSocketAction `json:"tcpSocket,omitempty"`
// Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
TimeoutSeconds int32 `json:"timeoutSeconds,omitempty"`
}