Skip to content

Commit 8993538

Browse files
[CI] Add Liveness Probe to Buildbot Container
This will automatically restart the container if the buildbot worker does not start properly. Fixes #571.
1 parent a2552b7 commit 8993538

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

premerge/buildbot/liveness.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#!/bin/bash
12
ps aux | grep "[b]uildbot-worker start"

premerge/buildbot_deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,9 @@ spec:
3535
limits:
3636
memory: "1Gi"
3737
cpu: "750m"
38+
livenessProbe:
39+
exec:
40+
command:
41+
- /liveness.sh
42+
initialDelaySeconds: 10
43+
periodSeconds: 60

0 commit comments

Comments
 (0)