From 6b53a2407fdabee85b23c0cab13c51006d23ea6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sat, 20 Nov 2021 15:34:21 +0100 Subject: [PATCH] Add readiness and liveliness probes --- src/runboat/kubefiles/deployment.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/runboat/kubefiles/deployment.yaml b/src/runboat/kubefiles/deployment.yaml index 42cc9e7..315f384 100644 --- a/src/runboat/kubefiles/deployment.yaml +++ b/src/runboat/kubefiles/deployment.yaml @@ -36,6 +36,16 @@ spec: containerPort: 8069 - name: longpolling containerPort: 8072 + readinessProbe: + tcpSocket: + port: 8069 + initialDelaySeconds: 2 + periodSeconds: 2 + livenessProbe: + tcpSocket: + port: web + initialDelaySeconds: 30 + periodSeconds: 30 args: ["bash", "/runboat/runboat-start.sh"] resources: limits: