From 2516d7abe0e7c4719ce6826a0e65669b2223adb1 Mon Sep 17 00:00:00 2001 From: Jeff Billimek Date: Sat, 18 Jan 2020 21:57:42 -0500 Subject: [PATCH] [frigate] frigate needs configurable probes (#141) * frigate needs configurable probes * adjust probe defaults --- charts/frigate/Chart.yaml | 2 +- charts/frigate/templates/deployment.yaml | 12 ++++++------ charts/frigate/values.yaml | 12 ++++++++++++ 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/charts/frigate/Chart.yaml b/charts/frigate/Chart.yaml index 03ad7c4c..0aa4737f 100644 --- a/charts/frigate/Chart.yaml +++ b/charts/frigate/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "0.4.0" description: Realtime object detection on RTSP cameras with the Google Coral name: frigate -version: 2.0.0 +version: 2.1.0 keywords: - tensorflow - coral diff --git a/charts/frigate/templates/deployment.yaml b/charts/frigate/templates/deployment.yaml index 9bdeb921..e034f15c 100644 --- a/charts/frigate/templates/deployment.yaml +++ b/charts/frigate/templates/deployment.yaml @@ -43,17 +43,17 @@ spec: path: / port: http scheme: HTTP - initialDelaySeconds: 30 - failureThreshold: 5 - timeoutSeconds: 5 + initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }} + failureThreshold: {{ .Values.probes.liveness.failureThreshold }} + timeoutSeconds: {{ .Values.probes.liveness.timeoutSeconds }} readinessProbe: httpGet: path: / port: http scheme: HTTP - initialDelaySeconds: 30 - failureThreshold: 5 - timeoutSeconds: 5 + initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }} + failureThreshold: {{ .Values.probes.readiness.failureThreshold }} + timeoutSeconds: {{ .Values.probes.readiness.timeoutSeconds }} env: {{- if .Values.timezone }} - name: TZ diff --git a/charts/frigate/values.yaml b/charts/frigate/values.yaml index ef545ac8..43c1a965 100644 --- a/charts/frigate/values.yaml +++ b/charts/frigate/values.yaml @@ -150,6 +150,18 @@ config: | - size: 400 x_offset: 750 y_offset: 250 + +# Probes configuration +probes: + liveness: + initialDelaySeconds: 30 + failureThreshold: 5 + timeoutSeconds: 10 + readiness: + initialDelaySeconds: 30 + failureThreshold: 5 + timeoutSeconds: 10 + service: type: ClusterIP port: 5000