[root@master ~]# kubectl explain pod.spec.containers.livenessProbe KIND: Pod VERSION: v1
RESOURCE: livenessProbe <Object>
DESCRIPTION: Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
FIELDS: exec<Object> One and only one of the following should be specified. Exec specifies the action to take.
failureThreshold<integer> Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
httpGet<Object> HTTPGet specifies the http request to perform.
initialDelaySeconds<integer> 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
periodSeconds<integer> How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.
successThreshold<integer> Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
tcpSocket<Object> TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported
timeoutSeconds<integer> 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
[root@master ~]# kubectl explain pod.spec.containers.readinessProbe KIND: Pod VERSION: v1
RESOURCE: readinessProbe <Object>
DESCRIPTION: Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
FIELDS: exec<Object> One and only one of the following should be specified. Exec specifies the action to take.
failureThreshold<integer> Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
httpGet<Object> HTTPGet specifies the http request to perform.
initialDelaySeconds<integer> 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
periodSeconds<integer> How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.
successThreshold<integer> Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
tcpSocket<Object> TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported
timeoutSeconds<integer> 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
[root@master health-check]# kubectl explain pod.spec.containers.startupProbe KIND: Pod VERSION: v1
RESOURCE: startupProbe <Object>
DESCRIPTION: StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
FIELDS: exec<Object> One and only one of the following should be specified. Exec specifies the action to take.
failureThreshold<integer> Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
httpGet<Object> HTTPGet specifies the http request to perform.
initialDelaySeconds<integer> 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
periodSeconds<integer> How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.
successThreshold<integer> Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
tcpSocket<Object> TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported
timeoutSeconds<integer> 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