Understanding Kubernetes Probes: Default Values and Beyond
Kubernetes, an open-source platform for automating deployment, scaling, and management of containerized applications, employs probes to monitor the health and readiness of your applications. Probes are essential for ensuring that your services are functioning correctly and that traffic is routed appropriately. In this article, we'll delve into the default values of Kubernetes probes and explore how you can customize them to suit your application's needs.
Default Probe Values in Kubernetes
Kubernetes provides three types of probes: readiness, liveness, and startup. Each probe has default values that determine how Kubernetes behaves when interacting with your application. Let's explore these defaults and understand their significance.
Readiness Probe
The readiness probe determines when a container is ready to start receiving traffic. By default, Kubernetes uses an HTTP GET request to the /ready endpoint to check the readiness of a container. If the probe fails, the container is considered not ready and is not included in the service's load balancing pool.

| Parameter | Default Value |
|---|---|
| InitialDelaySeconds | 0 |
| PeriodSeconds | 10 |
| TimeoutSeconds | 1 |
| SuccessThreshold | 1 |
| FailureThreshold | 3 |
Liveness Probe
The liveness probe helps Kubernetes understand when to restart a container. If a liveness probe fails, Kubernetes restarts the container. By default, Kubernetes uses an HTTP GET request to the /live endpoint to check the liveness of a container.
| Parameter | Default Value |
|---|---|
| InitialDelaySeconds | 15 |
| PeriodSeconds | 10 |
| TimeoutSeconds | 1 |
| SuccessThreshold | 1 |
| FailureThreshold | 3 |
Startup Probe
The startup probe determines when a container application has started. If a startup probe fails, Kubernetes assumes that the container is not yet ready and delays the liveness and readiness probes. By default, Kubernetes uses an HTTP GET request to the /startup endpoint to check the startup status of a container.
| Parameter | Default Value |
|---|---|
| InitialDelaySeconds | 0 |
| PeriodSeconds | 10 |
| TimeoutSeconds | 1 |
| SuccessThreshold | 1 |
| FailureThreshold | 30 |
Customizing Probe Values
While the default probe values work well for many applications, you may need to customize them to better suit your application's needs. For example, you might need to increase the InitialDelaySeconds to allow your application more time to start up, or you might need to adjust the FailureThreshold to give your application more time to recover from transient failures.

To customize probe values, you can specify them in your deployment or stateful set configuration. For example, to set the readiness probe's initial delay to 60 seconds and the failure threshold to 5, you would add the following configuration:
readinessProbe: initialDelaySeconds: 60 failureThreshold: 5
Probe Types and Handlers
In addition to customizing probe values, you can also choose from several probe types and handlers to better suit your application's needs. Probe types include HTTP, TCP, and exec, while handlers include HTTP, TCP, and exec. Each probe type and handler has its own use cases and considerations, which we'll explore in future articles.
Conclusion
Understanding the default values of Kubernetes probes is crucial for ensuring that your applications function correctly and are properly monitored. By customizing probe values and choosing the appropriate probe types and handlers, you can fine-tune Kubernetes to better suit your application's needs. In this article, we've explored the default values of Kubernetes probes and provided guidance on how to customize them. Stay tuned for future articles on probe types and handlers.























