From fa279f6c563ea2c46318d81f0ab7dbc51f22394d Mon Sep 17 00:00:00 2001 From: ruberoid Date: Sun, 11 May 2025 14:05:44 +0400 Subject: [PATCH] added liveness and rediness probes for telegram-listener. --- _deploy/k8s/deployment.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/_deploy/k8s/deployment.yaml b/_deploy/k8s/deployment.yaml index 0621db2..8d2f790 100644 --- a/_deploy/k8s/deployment.yaml +++ b/_deploy/k8s/deployment.yaml @@ -79,6 +79,22 @@ spec: mountPath: /app/.secrets - name: rw-files mountPath: /tmp/rw-files + + livenessProbe: + httpGet: + path: /health + port: 8080 + initialDelaySeconds: 30 + periodSeconds: 30 + timeoutSeconds: 5 + + readinessProbe: + httpGet: + path: /health + port: 8080 + initialDelaySeconds: 5 + periodSeconds: 10 + volumes: - name: secrets secret: