Skip to content

Commit

Permalink
Merge pull request #67 from muchtall/add_tmpfs_tmp_support
Browse files Browse the repository at this point in the history
Add support for /tmp mount backed by tmpfs/memory
  • Loading branch information
billimek committed May 17, 2024
2 parents 8b1a74d + c576684 commit 25e25ed
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/frigate/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "0.13.1"
description: NVR With Realtime Object Detection for IP Cameras
name: frigate
version: 7.4.0
version: 7.5.0
keywords:
- tensorflow
- coral
Expand Down
10 changes: 10 additions & 0 deletions charts/frigate/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ spec:
name: media
- name: dshm
mountPath: /dev/shm
{{- if .Values.tmpfs.enabled }}
- name: tmp
mountPath: /tmp
{{- end }}
{{- if .Values.extraVolumeMounts }}{{ toYaml .Values.extraVolumeMounts | trim | nindent 12 }}{{ end }}
resources:
{{- if .Values.gpu.nvidia.enabled }}
Expand Down Expand Up @@ -157,6 +161,12 @@ spec:
emptyDir:
medium: Memory
sizeLimit: {{ .Values.shmSize }}
{{- if .Values.tmpfs.enabled }}
- name: tmp
emptyDir:
medium: Memory
sizeLimit: {{ .Values.tmpfs.sizeLimit }}
{{- end }}
{{- if .Values.extraVolumes }}{{ toYaml .Values.extraVolumes | trim | nindent 8 }}{{ end }}
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
5 changes: 5 additions & 0 deletions charts/frigate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ extraVolumeMounts: []
# -- amount of shared memory to use for caching
shmSize: 1Gi

# -- use memory for tmpfs (mounted to /tmp)
tmpfs:
enabled: true
sizeLimit: 1Gi

# nameOverride -- Overrides the name of resources
nameOverride: ""

Expand Down

0 comments on commit 25e25ed

Please sign in to comment.