diff --git a/charts/frigate/Chart.yaml b/charts/frigate/Chart.yaml index bc82ce47..6e839d7a 100644 --- a/charts/frigate/Chart.yaml +++ b/charts/frigate/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 -appVersion: "0.5.0" +appVersion: "0.5.1" description: Realtime object detection on RTSP cameras with the Google Coral name: frigate -version: 3.0.0 +version: 3.1.0 keywords: - tensorflow - coral @@ -14,3 +14,5 @@ sources: maintainers: - name: billimek email: jeff@billimek.com + - name: blakeblackshear + email: blakeb@blakeshome.com diff --git a/charts/frigate/README.md b/charts/frigate/README.md index 1b43f682..abfe34c6 100644 --- a/charts/frigate/README.md +++ b/charts/frigate/README.md @@ -54,11 +54,12 @@ The following tables lists the configurable parameters of the Sentry chart and t | Parameter | Description | Default | |----------------------------|-------------------------------------|---------------------------------------------------------| | `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` | | `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` | | `rtspPassword` | Password to use for RTSP cameras | `password` | +| `extraSecretForEnvFrom` | Secrets containing env variables for | `[]` | | `coral.enabled` | Use the Coral USB device | `false` | | `coral.hostPath` | Host Path to reference USB device location (on the host) | `/dev/bus/usb` | | `shmSize` | Shared memory size for processing | `1Gi` | diff --git a/charts/frigate/templates/deployment.yaml b/charts/frigate/templates/deployment.yaml index 3c266ee8..afa63a10 100644 --- a/charts/frigate/templates/deployment.yaml +++ b/charts/frigate/templates/deployment.yaml @@ -39,6 +39,7 @@ spec: - name: http containerPort: 5000 protocol: TCP + {{- if .Values.probes.liveness.enabled }} livenessProbe: httpGet: path: / @@ -47,6 +48,8 @@ spec: initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }} failureThreshold: {{ .Values.probes.liveness.failureThreshold }} timeoutSeconds: {{ .Values.probes.liveness.timeoutSeconds }} + {{- end }} + {{- if .Values.probes.readiness.enabled }} readinessProbe: httpGet: path: / @@ -55,6 +58,7 @@ spec: initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }} failureThreshold: {{ .Values.probes.readiness.failureThreshold }} timeoutSeconds: {{ .Values.probes.readiness.timeoutSeconds }} + {{- end }} env: {{- if .Values.timezone }} - name: TZ @@ -62,6 +66,11 @@ spec: {{- end }} - name: FRIGATE_RTSP_PASSWORD value: "{{ .Values.rtspPassword }}" + envFrom: + {{- range .Values.extraSecretForEnvFrom }} + - secretRef: + name: {{ . }} + {{- end }} volumeMounts: {{- if .Values.coral.enabled }} - mountPath: /dev/bus/usb diff --git a/charts/frigate/values.yaml b/charts/frigate/values.yaml index fc391ecc..d5f35554 100644 --- a/charts/frigate/values.yaml +++ b/charts/frigate/values.yaml @@ -9,11 +9,14 @@ strategyType: Recreate image: repository: blakeblackshear/frigate - tag: 0.5.0 + tag: 0.5.1 pullPolicy: IfNotPresent rtspPassword: password +# secret name containing environment variables for frigate +extraSecretForEnvFrom: [] + coral: enabled: false hostPath: /dev/bus/usb @@ -167,10 +170,12 @@ config: | # Probes configuration probes: liveness: + enabled: true initialDelaySeconds: 30 failureThreshold: 5 timeoutSeconds: 10 readiness: + enabled: true initialDelaySeconds: 30 failureThreshold: 5 timeoutSeconds: 10