Updated 13. Using HealthChecks in eShopOnContainers (markdown)
parent
2769942899
commit
d65266ee75
@ -52,3 +52,31 @@ Next step is to define the `/hc` endpoint:
|
||||
```
|
||||
|
||||
In this case we want to run **all checkers defined** (so, the predicate will always return true to select all checkers).
|
||||
|
||||
## Configuring probes for Kubernetes using health checks
|
||||
|
||||
Helm charts already configure the needed probes in kubernetes using the healthchecks, but you can override the configuration provided by **editing the file `/k8s/helm/<chart-folder>/values.yaml`**. You'll see a code like that:
|
||||
|
||||
```yaml
|
||||
probes:
|
||||
liveness:
|
||||
path: /liveness
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 15
|
||||
port: 80
|
||||
readiness:
|
||||
path: /hc
|
||||
timeoutSeconds: 5
|
||||
initialDelaySeconds: 90
|
||||
periodSeconds: 60
|
||||
port: 80
|
||||
```
|
||||
|
||||
You can remove a probe if you want or update its configuration. Default configuration is the same for all charts:
|
||||
|
||||
* 10 seconds before k8s starts to test the liveness probe
|
||||
* 1 sec of timeout for liveness probe (**not configurable**)
|
||||
* 15 sec between liveness probes calls
|
||||
* 90 seconds before k8s starts to test the readiness probe
|
||||
* 5 sec of timeout for readiness probe
|
||||
* 60 sec between readiness probes calls
|
||||
|
Loading…
x
Reference in New Issue
Block a user