Skip to content

Commit

Permalink
Update readinessProbe and livenessProbe in kubernetes.md
Browse files Browse the repository at this point in the history
The previous probe reported the container as ready during entrypoint.

During container start, the process (ps output) looks like `{docker-entrypoi} /bin/sh /usr/local/bin/docker-entrypoint bin/console messenger:consume something`
  • Loading branch information
nightio authored and dunglas committed Aug 10, 2024
1 parent 1e7f1a8 commit 4292873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,12 @@ Then, update the probes:
```yaml
readinessProbe:
exec:
command: ["/bin/sh", "-c", "/bin/ps -ef | grep messenger:consume | grep -v grep"]
command: ["/bin/sh", "-c", "/usr/bin/pgrep -af '^php.*bin/console.*messenger:consume'"]
initialDelaySeconds: 120
periodSeconds: 3
livenessProbe:
exec:
command: ["/bin/sh", "-c", "/bin/ps -ef | grep messenger:consume | grep -v grep"]
command: ["/bin/sh", "-c", "/usr/bin/pgrep -af '^php.*bin/console.*messenger:consume'"]
initialDelaySeconds: 120
periodSeconds: 3
```

0 comments on commit 4292873

Please sign in to comment.