Skip to content

Commit e3a1488

Browse files
kubernetes: Messenger with FrankenPHP (#1939)
* docs(kubernetes) : Adding instruction for the messenger queue with FrankenPHP image The readinessProbe and livenessProbe suggested in the documentation failed because the /bin/ps wasn't installed on the Docker Image. * Update deployment/kubernetes.md Co-authored-by: Kévin Dunglas <[email protected]> * Update kubernetes.md * Update kubernetes.md * lint --------- Co-authored-by: Kévin Dunglas <[email protected]>
1 parent c957aa9 commit e3a1488

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

deployment/kubernetes.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,31 @@ commandArgs: ['messenger:consume', 'async', '--memory-limit=100M']
225225
226226
The `readinessProbe` and the `livenessProble` can not use the default `docker-healthcheck` but should test if the command is running.
227227

228+
First, make sure to install the `/bin/ps` binary, otherwise the `readinessProbe` and `livenessProbe` will fail:
229+
230+
<!-- markdownlint-disable no-hard-tabs -->
231+
232+
```patch
233+
# api/Dockerfile
234+
235+
RUN apt-get update && apt-get install --no-install-recommends -y \
236+
+ procps \
237+
# ...
238+
```
239+
240+
<!-- markdownlint-enable no-hard-tabs -->
241+
242+
Then, update the probes:
243+
228244
```yaml
229245
readinessProbe:
230246
exec:
231247
command: ["/bin/sh", "-c", "/bin/ps -ef | grep messenger:consume | grep -v grep"]
232248
initialDelaySeconds: 120
233249
periodSeconds: 3
250+
livenessProbe:
251+
exec:
252+
command: ["/bin/sh", "-c", "/bin/ps -ef | grep messenger:consume | grep -v grep"]
253+
initialDelaySeconds: 120
254+
periodSeconds: 3
234255
```

0 commit comments

Comments
 (0)