Skip to content

Commit

Permalink
Change periodSeconds to non default value
Browse files Browse the repository at this point in the history
Change `periodSeconds` to a value different than its default.

From pods.spec.containers.livenessProbe:

```
   periodSeconds        <integer>
     How often (in seconds) to perform the probe. Default to 10 seconds. Minimum
     value is 1.
```
  • Loading branch information
ojongerius committed Feb 16, 2020
1 parent b35da74 commit 3f3ae8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e.observability.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ kubectl delete -f pod.yaml
</p>
</details>

### Modify the pod.yaml file so that liveness probe starts kicking in after 5 seconds whereas the period of probing would be 10 seconds. Run it, check the probe, delete it.
### Modify the pod.yaml file so that liveness probe starts kicking in after 5 seconds whereas the interval between probes would be 5 seconds. Run it, check the probe, delete it.

<details><summary>show</summary>
<p>
Expand All @@ -72,7 +72,7 @@ spec:
resources: {}
livenessProbe:
initialDelaySeconds: 5 # add this line
periodSeconds: 10 # add this line as well
periodSeconds: 5 # add this line as well
exec:
command:
- ls
Expand Down

0 comments on commit 3f3ae8d

Please sign in to comment.