Compare commits
4 Commits
8acdc699eb
...
5fe2d257ba
| Author | SHA1 | Date | |
|---|---|---|---|
| 5fe2d257ba | |||
| d95eb6f4ab | |||
| 5252f209f5 | |||
| e7348b2718 |
@@ -2,4 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
|
- secret.yaml
|
||||||
- release.yaml
|
- release.yaml
|
||||||
|
- webrtc-svc.yaml
|
||||||
|
|||||||
@@ -27,14 +27,49 @@ spec:
|
|||||||
config: |
|
config: |
|
||||||
mqtt:
|
mqtt:
|
||||||
enabled: False
|
enabled: False
|
||||||
cameras:
|
|
||||||
dummy_camera:
|
tls:
|
||||||
enabled: False
|
enabled: False
|
||||||
|
|
||||||
|
auth:
|
||||||
|
enabled: True
|
||||||
|
cookie_secure: True
|
||||||
|
|
||||||
|
record:
|
||||||
|
enabled: True
|
||||||
|
retain:
|
||||||
|
days: 90
|
||||||
|
mode: motion
|
||||||
|
|
||||||
|
cameras:
|
||||||
|
dom:
|
||||||
|
enabled: True
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
inputs:
|
inputs:
|
||||||
- path: rtsp://127.0.0.1:554/rtsp
|
- path: rtsp://{FRIGATE_RTSP_DOM_USER}:{FRIGATE_RTSP_DOM_PASSWORD}@192.168.3.10:554/Streaming/Channels/101
|
||||||
roles:
|
roles:
|
||||||
|
- audio
|
||||||
- detect
|
- detect
|
||||||
|
- record
|
||||||
|
garaz:
|
||||||
|
enabled: True
|
||||||
|
ffmpeg:
|
||||||
|
inputs:
|
||||||
|
- path: rtsp://{FRIGATE_RTSP_GARAZ_USER}:{FRIGATE_RTSP_GARAZ_PASSWORD}@192.168.3.11:554/Streaming/Channels/101
|
||||||
|
roles:
|
||||||
|
- audio
|
||||||
|
- detect
|
||||||
|
- 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
|
||||||
@@ -46,3 +81,20 @@ spec:
|
|||||||
size: 100Mi
|
size: 100Mi
|
||||||
storageClass: mayastor-single-hdd
|
storageClass: mayastor-single-hdd
|
||||||
skipuninstall: true
|
skipuninstall: true
|
||||||
|
envFromSecrets:
|
||||||
|
- frigate-camera-rtsp
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
nginx.org/websocket-services: frigate
|
||||||
|
hosts:
|
||||||
|
- host: frigate.lumpiasty.xyz
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
portName: http-auth
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- frigate.lumpiasty.xyz
|
||||||
|
secretName: frigate-ingress
|
||||||
|
|||||||
43
apps/frigate/secret.yaml
Normal file
43
apps/frigate/secret.yaml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: camera
|
||||||
|
namespace: frigate
|
||||||
|
---
|
||||||
|
apiVersion: secrets.hashicorp.com/v1beta1
|
||||||
|
kind: VaultAuth
|
||||||
|
metadata:
|
||||||
|
name: camera
|
||||||
|
namespace: frigate
|
||||||
|
spec:
|
||||||
|
method: kubernetes
|
||||||
|
mount: kubernetes
|
||||||
|
kubernetes:
|
||||||
|
role: frigate-camera
|
||||||
|
serviceAccount: camera
|
||||||
|
---
|
||||||
|
apiVersion: secrets.hashicorp.com/v1beta1
|
||||||
|
kind: VaultStaticSecret
|
||||||
|
metadata:
|
||||||
|
name: frigate-camera-rtsp
|
||||||
|
namespace: frigate
|
||||||
|
spec:
|
||||||
|
type: kv-v2
|
||||||
|
|
||||||
|
mount: secret
|
||||||
|
path: cameras
|
||||||
|
|
||||||
|
destination:
|
||||||
|
create: true
|
||||||
|
name: frigate-camera-rtsp
|
||||||
|
type: Opaque
|
||||||
|
transformation:
|
||||||
|
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
|
||||||
20
apps/frigate/webrtc-svc.yaml
Normal file
20
apps/frigate/webrtc-svc.yaml
Normal 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
|
||||||
@@ -15,7 +15,7 @@ spec:
|
|||||||
- name: renovate
|
- name: renovate
|
||||||
# Update this to the latest available and then enable Renovate on
|
# Update this to the latest available and then enable Renovate on
|
||||||
# the manifest
|
# the manifest
|
||||||
image: renovate/renovate:41.16.1-full
|
image: renovate/renovate:41.16.2-full
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: renovate-gitea-token
|
name: renovate-gitea-token
|
||||||
|
|||||||
6
vault/kubernetes-roles/frigate-camera.yaml
Normal file
6
vault/kubernetes-roles/frigate-camera.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
bound_service_account_names:
|
||||||
|
- camera
|
||||||
|
bound_service_account_namespaces:
|
||||||
|
- frigate
|
||||||
|
token_policies:
|
||||||
|
- frigate
|
||||||
4
vault/policy/frigate.hcl
Normal file
4
vault/policy/frigate.hcl
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
path "secret/data/cameras" {
|
||||||
|
capabilities = ["read"]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user