mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Merge pull request #3593 from commonlisp/master
Add timeouts to HealthChecks and retry checks
This commit is contained in:
@@ -292,6 +292,8 @@ type Probe struct {
|
||||
Handler `json:",inline"`
|
||||
// Length of time before health checking is activated. In seconds.
|
||||
InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty"`
|
||||
// Length of time before health checking times out. In seconds.
|
||||
TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`
|
||||
}
|
||||
|
||||
// PullPolicy describes a policy for if/when to pull a container image
|
||||
|
||||
@@ -1050,6 +1050,7 @@ func init() {
|
||||
return err
|
||||
}
|
||||
out.InitialDelaySeconds = in.InitialDelaySeconds
|
||||
out.TimeoutSeconds = in.TimeoutSeconds
|
||||
return nil
|
||||
},
|
||||
func(in *LivenessProbe, out *newer.Probe, s conversion.Scope) error {
|
||||
@@ -1063,6 +1064,7 @@ func init() {
|
||||
return err
|
||||
}
|
||||
out.InitialDelaySeconds = in.InitialDelaySeconds
|
||||
out.TimeoutSeconds = in.TimeoutSeconds
|
||||
return nil
|
||||
},
|
||||
)
|
||||
|
||||
@@ -232,6 +232,8 @@ type LivenessProbe struct {
|
||||
Exec *ExecAction `json:"exec,omitempty" description:"parameters for exec-based liveness probe"`
|
||||
// Length of time before health checking is activated. In seconds.
|
||||
InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty" description:"number of seconds after the container has started before liveness probes are initiated"`
|
||||
// Length of time before health checking times out. In seconds.
|
||||
TimeoutSeconds int64 `json:"timeoutSeconds,omitempty" description:"number of seconds after which liveness probes timeout; defaults to 1 second"`
|
||||
}
|
||||
|
||||
// PullPolicy describes a policy for if/when to pull a container image
|
||||
|
||||
@@ -966,6 +966,7 @@ func init() {
|
||||
return err
|
||||
}
|
||||
out.InitialDelaySeconds = in.InitialDelaySeconds
|
||||
out.TimeoutSeconds = in.TimeoutSeconds
|
||||
return nil
|
||||
},
|
||||
func(in *LivenessProbe, out *newer.Probe, s conversion.Scope) error {
|
||||
@@ -979,6 +980,7 @@ func init() {
|
||||
return err
|
||||
}
|
||||
out.InitialDelaySeconds = in.InitialDelaySeconds
|
||||
out.TimeoutSeconds = in.TimeoutSeconds
|
||||
return nil
|
||||
},
|
||||
)
|
||||
|
||||
@@ -191,6 +191,8 @@ type LivenessProbe struct {
|
||||
Exec *ExecAction `json:"exec,omitempty" description:"parameters for exec-based liveness probe"`
|
||||
// Length of time before health checking is activated. In seconds.
|
||||
InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty" description:"number of seconds after the container has started before liveness probes are initiated"`
|
||||
// Length of time before health checking times out. In seconds.
|
||||
TimeoutSeconds int64 `json:"timeoutSeconds,omitempty" description:"number of seconds after which liveness probes timeout; defaults to 1 second"`
|
||||
}
|
||||
|
||||
// PullPolicy describes a policy for if/when to pull a container image
|
||||
|
||||
@@ -310,6 +310,8 @@ type Probe struct {
|
||||
Handler `json:",inline"`
|
||||
// Length of time before health checking is activated. In seconds.
|
||||
InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty"`
|
||||
// Length of time before health checking times out. In seconds.
|
||||
TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`
|
||||
}
|
||||
|
||||
// PullPolicy describes a policy for if/when to pull a container image
|
||||
|
||||
Reference in New Issue
Block a user