mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-03 10:17:46 +00:00
Add liveness/readiness probe parameters
- PeriodSeconds - How often to probe - SuccessThreshold - Number of successful probes to go from failure to success state - FailureThreshold - Number of failing probes to go from success to failure state This commit includes to changes in behavior: 1. InitialDelaySeconds now defaults to 10 seconds, rather than the kubelet sync interval (although that also defaults to 10 seconds). 2. Prober only retries on probe error, not failure. To compensate, the default FailureThreshold is set to the maxRetries, 3.
This commit is contained in:
@@ -13524,7 +13524,7 @@
|
||||
},
|
||||
"v1.Probe": {
|
||||
"id": "v1.Probe",
|
||||
"description": "Probe describes a liveness probe to be examined to the container.",
|
||||
"description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to recieve traffic.",
|
||||
"properties": {
|
||||
"exec": {
|
||||
"$ref": "v1.ExecAction",
|
||||
@@ -13546,7 +13546,22 @@
|
||||
"timeoutSeconds": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "Number of seconds after which liveness probes timeout. Defaults to 1 second. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes"
|
||||
"description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes"
|
||||
},
|
||||
"periodSeconds": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1."
|
||||
},
|
||||
"successThreshold": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"description": "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."
|
||||
},
|
||||
"failureThreshold": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@@ -3768,7 +3768,7 @@
|
||||
},
|
||||
"v1.Probe": {
|
||||
"id": "v1.Probe",
|
||||
"description": "Probe describes a liveness probe to be examined to the container.",
|
||||
"description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to recieve traffic.",
|
||||
"properties": {
|
||||
"exec": {
|
||||
"$ref": "v1.ExecAction",
|
||||
@@ -3790,7 +3790,22 @@
|
||||
"timeoutSeconds": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "Number of seconds after which liveness probes timeout. Defaults to 1 second. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes"
|
||||
"description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes"
|
||||
},
|
||||
"periodSeconds": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1."
|
||||
},
|
||||
"successThreshold": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"description": "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."
|
||||
},
|
||||
"failureThreshold": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user