'What is the default value of initialDelaySeconds?
Kubernetes' liveness and readiness probes for pods (deployment) can be configured with this initial delay ---- meaning the probe will start after this many seconds after the container is up. If it is not specified, what is the default value? I can't seem to find it. The default value for periodSeconds is documented as 10 second.
Thanks
Solution 1:[1]
Given the pace at which the project changes, I wanted to make sure the code actually confirms this.
Found a test in the public Kubernetes repo that verifies the default settings for probes:
expectedProbe := v1.Probe{
InitialDelaySeconds: 0,
TimeoutSeconds: 1,
PeriodSeconds: 10,
SuccessThreshold: 1,
FailureThreshold: 3,
}
See method TestSetDefaultProbe in
https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/core/v1/defaults_test.go
Solution 2:[2]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Harsh Manvar |

