Skip to content

Commit 4292873

Browse files
nightiodunglas
authored andcommitted
Update readinessProbe and livenessProbe in kubernetes.md
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`
1 parent 1e7f1a8 commit 4292873

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deployment/kubernetes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,12 @@ Then, update the probes:
244244
```yaml
245245
readinessProbe:
246246
exec:
247-
command: ["/bin/sh", "-c", "/bin/ps -ef | grep messenger:consume | grep -v grep"]
247+
command: ["/bin/sh", "-c", "/usr/bin/pgrep -af '^php.*bin/console.*messenger:consume'"]
248248
initialDelaySeconds: 120
249249
periodSeconds: 3
250250
livenessProbe:
251251
exec:
252-
command: ["/bin/sh", "-c", "/bin/ps -ef | grep messenger:consume | grep -v grep"]
252+
command: ["/bin/sh", "-c", "/usr/bin/pgrep -af '^php.*bin/console.*messenger:consume'"]
253253
initialDelaySeconds: 120
254254
periodSeconds: 3
255255
```

0 commit comments

Comments
 (0)