Configure frigate webrtc

This commit is contained in:
2025-06-29 01:30:51 +02:00
parent 5252f209f5
commit d95eb6f4ab
4 changed files with 37 additions and 0 deletions

View File

@@ -4,3 +4,4 @@ resources:
- namespace.yaml - namespace.yaml
- secret.yaml - secret.yaml
- release.yaml - release.yaml
- webrtc-svc.yaml

View File

@@ -60,6 +60,16 @@ spec:
- audio - audio
- detect - detect
- record - record
go2rtc:
streams:
dom:
- rtsp://{FRIGATE_RTSP_DOM_USER}:{FRIGATE_RTSP_DOM_PASSWORD_URLENCODED}@192.168.3.10:554/Streaming/Channels/101
garaz:
- rtsp://{FRIGATE_RTSP_GARAZ_USER}:{FRIGATE_RTSP_GARAZ_PASSWORD_URLENCODED}@192.168.3.11:554/Streaming/Channels/101
webrtc:
candidates:
- frigate-rtc.lumpiasty.xyz:8555
persistence: persistence:
media: media:
enabled: true enabled: true
@@ -78,6 +88,7 @@ spec:
enabled: true enabled: true
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt cert-manager.io/cluster-issuer: letsencrypt
nginx.org/websocket-services: frigate
hosts: hosts:
- host: frigate.lumpiasty.xyz - host: frigate.lumpiasty.xyz
paths: paths:

View File

@@ -34,5 +34,10 @@ spec:
type: Opaque type: Opaque
transformation: transformation:
excludeRaw: true excludeRaw: true
templates:
FRIGATE_RTSP_DOM_PASSWORD_URLENCODED:
text: '{{ urlquery (get .Secrets "FRIGATE_RTSP_DOM_PASSWORD") }}'
FRIGATE_RTSP_GARAZ_PASSWORD_URLENCODED:
text: '{{ urlquery (get .Secrets "FRIGATE_RTSP_GARAZ_PASSWORD") }}'
vaultAuthRef: camera vaultAuthRef: camera

View File

@@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
metadata:
name: go2rtc
namespace: frigate
spec:
type: LoadBalancer
selector:
app.kubernetes.io/instance: frigate
app.kubernetes.io/name: frigate
ipFamilyPolicy: RequireDualStack
ports:
- name: webrtc-tcp
protocol: TCP
port: 8555
targetPort: webrtc-tcp
- name: webrtc-udp
protocol: UDP
port: 8555
targetPort: webrtc-udp