[frigate] Support disabling probes and secrets for env vars (#249)

* [frigate] add support for secrets with envFrom

* [frigate] update values.yaml with extraSecretForEnvFrom

* [frigate] allow probes to be disabled

* [frigate] update default image

* [frigate] update version and add myself as a maintainer

* [frigate] Readme update
This commit is contained in:
Blake Blackshear 2020-06-21 10:06:10 -05:00 committed by GitHub
parent fa717823cd
commit 5a14363804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 4 deletions

View File

@ -1,8 +1,8 @@
apiVersion: v1 apiVersion: v1
appVersion: "0.5.0" appVersion: "0.5.1"
description: Realtime object detection on RTSP cameras with the Google Coral description: Realtime object detection on RTSP cameras with the Google Coral
name: frigate name: frigate
version: 3.0.0 version: 3.1.0
keywords: keywords:
- tensorflow - tensorflow
- coral - coral
@ -14,3 +14,5 @@ sources:
maintainers: maintainers:
- name: billimek - name: billimek
email: jeff@billimek.com email: jeff@billimek.com
- name: blakeblackshear
email: blakeb@blakeshome.com

View File

@ -54,11 +54,12 @@ The following tables lists the configurable parameters of the Sentry chart and t
| Parameter | Description | Default | | Parameter | Description | Default |
|----------------------------|-------------------------------------|---------------------------------------------------------| |----------------------------|-------------------------------------|---------------------------------------------------------|
| `image.repository` | Image repository | `blakeblackshear/frigate` | | `image.repository` | Image repository | `blakeblackshear/frigate` |
| `image.tag` | Image tag. Possible values listed [here](https://hub.docker.com/r/blakeblackshear/frigate/tags/).| `0.5.0`| | `image.tag` | Image tag. Possible values listed [here](https://hub.docker.com/r/blakeblackshear/frigate/tags/).| `0.5.1`|
| `image.pullPolicy` | Image pull policy | `IfNotPresent` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `strategyType` | Specifies the strategy used to replace old Pods by new ones | `Recreate` | | `strategyType` | Specifies the strategy used to replace old Pods by new ones | `Recreate` |
| `timezone` | Timezone the frigate instance should run as, e.g. 'America/New_York' | `UTC` | | `timezone` | Timezone the frigate instance should run as, e.g. 'America/New_York' | `UTC` |
| `rtspPassword` | Password to use for RTSP cameras | `password` | | `rtspPassword` | Password to use for RTSP cameras | `password` |
| `extraSecretForEnvFrom` | Secrets containing env variables for | `[]` |
| `coral.enabled` | Use the Coral USB device | `false` | | `coral.enabled` | Use the Coral USB device | `false` |
| `coral.hostPath` | Host Path to reference USB device location (on the host) | `/dev/bus/usb` | | `coral.hostPath` | Host Path to reference USB device location (on the host) | `/dev/bus/usb` |
| `shmSize` | Shared memory size for processing | `1Gi` | | `shmSize` | Shared memory size for processing | `1Gi` |

View File

@ -39,6 +39,7 @@ spec:
- name: http - name: http
containerPort: 5000 containerPort: 5000
protocol: TCP protocol: TCP
{{- if .Values.probes.liveness.enabled }}
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
@ -47,6 +48,8 @@ spec:
initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }} initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
failureThreshold: {{ .Values.probes.liveness.failureThreshold }} failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
timeoutSeconds: {{ .Values.probes.liveness.timeoutSeconds }} timeoutSeconds: {{ .Values.probes.liveness.timeoutSeconds }}
{{- end }}
{{- if .Values.probes.readiness.enabled }}
readinessProbe: readinessProbe:
httpGet: httpGet:
path: / path: /
@ -55,6 +58,7 @@ spec:
initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }} initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
failureThreshold: {{ .Values.probes.readiness.failureThreshold }} failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
timeoutSeconds: {{ .Values.probes.readiness.timeoutSeconds }} timeoutSeconds: {{ .Values.probes.readiness.timeoutSeconds }}
{{- end }}
env: env:
{{- if .Values.timezone }} {{- if .Values.timezone }}
- name: TZ - name: TZ
@ -62,6 +66,11 @@ spec:
{{- end }} {{- end }}
- name: FRIGATE_RTSP_PASSWORD - name: FRIGATE_RTSP_PASSWORD
value: "{{ .Values.rtspPassword }}" value: "{{ .Values.rtspPassword }}"
envFrom:
{{- range .Values.extraSecretForEnvFrom }}
- secretRef:
name: {{ . }}
{{- end }}
volumeMounts: volumeMounts:
{{- if .Values.coral.enabled }} {{- if .Values.coral.enabled }}
- mountPath: /dev/bus/usb - mountPath: /dev/bus/usb

View File

@ -9,11 +9,14 @@ strategyType: Recreate
image: image:
repository: blakeblackshear/frigate repository: blakeblackshear/frigate
tag: 0.5.0 tag: 0.5.1
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
rtspPassword: password rtspPassword: password
# secret name containing environment variables for frigate
extraSecretForEnvFrom: []
coral: coral:
enabled: false enabled: false
hostPath: /dev/bus/usb hostPath: /dev/bus/usb
@ -167,10 +170,12 @@ config: |
# Probes configuration # Probes configuration
probes: probes:
liveness: liveness:
enabled: true
initialDelaySeconds: 30 initialDelaySeconds: 30
failureThreshold: 5 failureThreshold: 5
timeoutSeconds: 10 timeoutSeconds: 10
readiness: readiness:
enabled: true
initialDelaySeconds: 30 initialDelaySeconds: 30
failureThreshold: 5 failureThreshold: 5
timeoutSeconds: 10 timeoutSeconds: 10