From 1e3107e648818071d1dc5c788e0416ecc7858a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Mon, 22 Aug 2022 10:52:36 +0300 Subject: [PATCH] Add readiness probe --- camera-deployment.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/camera-deployment.yml b/camera-deployment.yml index a2a3102..a9d1103 100644 --- a/camera-deployment.yml +++ b/camera-deployment.yml @@ -32,6 +32,13 @@ spec: containers: - name: camdetect image: harbor.k-space.ee/k-space/camera-motion-detect:latest + readinessProbe: + httpGet: + path: /readyz + port: 5000 + initialDelaySeconds: 10 + periodSeconds: 180 + timeoutSeconds: 60 ports: - containerPort: 5000 name: "http"