mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
[frigate] Allow mask files to be passed to the container, version bump (#312)
* Update Frigate version * Allow configmap that contains camera masks * Enable startupProbe functionality * Disable probes by default * Disable probes only during CI * Disable probes only during CI
This commit is contained in:
parent
bf08c9dc7d
commit
bd9f296d6c
@ -1,8 +1,8 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
appVersion: "0.5.1"
|
appVersion: "0.5.2"
|
||||||
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.1.0
|
version: 3.2.0
|
||||||
keywords:
|
keywords:
|
||||||
- tensorflow
|
- tensorflow
|
||||||
- coral
|
- coral
|
||||||
|
@ -49,7 +49,7 @@ The command removes all the Kubernetes components associated with the chart and
|
|||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
The following tables lists the configurable parameters of the Sentry chart and their default values.
|
The following tables lists the configurable parameters of the Frigate chart and their default values.
|
||||||
|
|
||||||
| Parameter | Description | Default |
|
| Parameter | Description | Default |
|
||||||
|----------------------------|-------------------------------------|---------------------------------------------------------|
|
|----------------------------|-------------------------------------|---------------------------------------------------------|
|
||||||
@ -62,6 +62,7 @@ The following tables lists the configurable parameters of the Sentry chart and t
|
|||||||
| `extraSecretForEnvFrom` | Secrets containing env variables for | `[]` |
|
| `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` |
|
||||||
|
| `masksConfigMap` | Reference to existing ConfigMap that contains camera masks - [more info](https://github.com/blakeblackshear/frigate#masks-and-limiting-detection-to-a-certain-area) | `{}` |
|
||||||
| `shmSize` | Shared memory size for processing | `1Gi` |
|
| `shmSize` | Shared memory size for processing | `1Gi` |
|
||||||
| `config` | frigate configuration - see [config.yaml](https://github.com/blakeblackshear/frigate/blob/master/config/config.yml) for example | `{}` |
|
| `config` | frigate configuration - see [config.yaml](https://github.com/blakeblackshear/frigate/blob/master/config/config.yml) for example | `{}` |
|
||||||
| `Service.type` | Kubernetes service type for the frigate GUI | `ClusterIP` |
|
| `Service.type` | Kubernetes service type for the frigate GUI | `ClusterIP` |
|
||||||
|
8
charts/frigate/ci/ci-values.yaml
Normal file
8
charts/frigate/ci/ci-values.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Probes configuration
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
startup:
|
||||||
|
enabled: false
|
@ -29,6 +29,27 @@ spec:
|
|||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
initContainers:
|
||||||
|
- name: config
|
||||||
|
securityContext:
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
image: "{{ .Values.initContainer.image.repository }}:{{ .Values.initContainer.image.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.initContainer.image.pullPolicy }}
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /frigate-config
|
||||||
|
name: configmap
|
||||||
|
- mountPath: /masks
|
||||||
|
name: masks
|
||||||
|
- mountPath: /config
|
||||||
|
name: config
|
||||||
|
readOnly: false
|
||||||
|
command: ['sh', '-c']
|
||||||
|
args:
|
||||||
|
- cp /frigate-config/* /config;
|
||||||
|
{{- if .Values.masksConfigMap }}
|
||||||
|
cp /masks/* /config;
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
@ -59,6 +80,15 @@ spec:
|
|||||||
failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
|
failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
|
||||||
timeoutSeconds: {{ .Values.probes.readiness.timeoutSeconds }}
|
timeoutSeconds: {{ .Values.probes.readiness.timeoutSeconds }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.probes.startup.enabled }}
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: http
|
||||||
|
scheme: HTTP
|
||||||
|
failureThreshold: {{ .Values.probes.startup.failureThreshold }}
|
||||||
|
periodSeconds: {{ .Values.probes.startup.periodSeconds }}
|
||||||
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
{{- if .Values.timezone }}
|
{{- if .Values.timezone }}
|
||||||
- name: TZ
|
- name: TZ
|
||||||
@ -84,8 +114,18 @@ spec:
|
|||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
|
emptyDir: {}
|
||||||
|
- name: configmap
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ template "frigate.fullname" . }}
|
name: {{ template "frigate.fullname" . }}
|
||||||
|
- name: masks
|
||||||
|
{{- if .Values.masksConfigMap }}
|
||||||
|
configMap:
|
||||||
|
name: {{ .Values.masksConfigMap }}
|
||||||
|
{{- else }}
|
||||||
|
emptyDir:
|
||||||
|
{}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.coral.enabled }}
|
{{- if .Values.coral.enabled }}
|
||||||
- name: usb
|
- name: usb
|
||||||
hostPath:
|
hostPath:
|
||||||
|
@ -9,7 +9,7 @@ strategyType: Recreate
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
repository: blakeblackshear/frigate
|
repository: blakeblackshear/frigate
|
||||||
tag: 0.5.1
|
tag: 0.5.2
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
rtspPassword: password
|
rtspPassword: password
|
||||||
@ -21,6 +21,18 @@ coral:
|
|||||||
enabled: false
|
enabled: false
|
||||||
hostPath: /dev/bus/usb
|
hostPath: /dev/bus/usb
|
||||||
|
|
||||||
|
# Specify image that generates the config folder containing the Frigate config file, masks (if specified), etc.
|
||||||
|
initContainer:
|
||||||
|
image:
|
||||||
|
repository: busybox
|
||||||
|
tag: latest
|
||||||
|
pullPolicy: Always
|
||||||
|
|
||||||
|
# reference to configMap that contains the binary data of the masks to be copied into the container
|
||||||
|
# this requires that generateConfigFolder.enabled = true
|
||||||
|
# see https://github.com/blakeblackshear/frigate#masks-and-limiting-detection-to-a-certain-area for more info
|
||||||
|
masksConfigMap: {}
|
||||||
|
|
||||||
shmSize: 1Gi
|
shmSize: 1Gi
|
||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
@ -179,6 +191,10 @@ probes:
|
|||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
failureThreshold: 5
|
failureThreshold: 5
|
||||||
timeoutSeconds: 10
|
timeoutSeconds: 10
|
||||||
|
startup:
|
||||||
|
enabled: false
|
||||||
|
failureThreshold: 30
|
||||||
|
periodSeconds: 10
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
Loading…
Reference in New Issue
Block a user