Files
chart/library/ix-dev/community/frigate/templates/_service.tpl
Stavros Kois 310d6d6426 NAS-123485 / 24.04 / Add frigate to community apps (#1434)
* Add `frigate` to `community` apps

* add cia values

* add initial templtes

* add values

* add common

* fix typo

* another one

* make it non-fail no matter the indendation

* typo

* questions and gpu

* perms

* more caps

* port

* shm and usb

* whops

* privieleged on usb bus mount

* invert logic
2023-08-11 18:23:30 +03:00

66 lines
1.7 KiB
Smarty

{{- define "frigate.service" -}}
service:
frigate:
enabled: true
primary: true
type: NodePort
targetSelector: frigate
ports:
webui:
enabled: true
primary: true
port: {{ .Values.frigateNetwork.webPort }}
nodePort: {{ .Values.frigateNetwork.webPort }}
targetPort: 5000
targetSelector: frigate
{{ if .Values.frigateNetwork.enableRtmp }}
rtmp:
enabled: true
type: NodePort
targetSelector: frigate
ports:
rtmp:
enabled: true
primary: true
port: {{ .Values.frigateNetwork.rtmpPort }}
nodePort: {{ .Values.frigateNetwork.rtmpPort }}
targetPort: 1935
targetSelector: frigate
{{ end }}
{{ if .Values.frigateNetwork.enableRtsp }}
rtsp:
enabled: true
type: NodePort
targetSelector: frigate
ports:
rtsp:
enabled: true
primary: true
port: {{ .Values.frigateNetwork.rtspPort }}
nodePort: {{ .Values.frigateNetwork.rtspPort }}
targetPort: 8554
targetSelector: frigate
{{ end }}
{{ if .Values.frigateNetwork.enableWebRtc }}
webrtc:
enabled: true
type: NodePort
targetSelector: frigate
ports:
tcp:
enabled: true
primary: true
port: {{ .Values.frigateNetwork.webRtcPort }}
nodePort: {{ .Values.frigateNetwork.webRtcPort }}
targetPort: 8555
targetSelector: frigate
udp:
enabled: true
port: {{ .Values.frigateNetwork.webRtcPort }}
nodePort: {{ .Values.frigateNetwork.webRtcPort }}
targetPort: 8555
protocol: udp
targetSelector: frigate
{{ end }}
{{- end -}}