135 lines
3.5 KiB
YAML
135 lines
3.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: frigate
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: frigate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: frigate
|
|
spec:
|
|
containers:
|
|
- name: frigate
|
|
image: ghcr.io/blakeblackshear/frigate:stable
|
|
ports:
|
|
- name: http
|
|
containerPort: 5000
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: frigate
|
|
spec:
|
|
selector:
|
|
app: frigate
|
|
ports:
|
|
- name: http
|
|
port: 5000
|
|
targetPort: http
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: frigate-camera-control
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: frigate-camera-control
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: frigate-camera-control
|
|
spec:
|
|
containers:
|
|
- name: camera-control
|
|
image: registry.example.local/frigate-camera-control-bridge:1.0
|
|
env:
|
|
- name: FRIGATE_NAME
|
|
value: frigate-main
|
|
- name: FRIGATE_URL
|
|
value: http://frigate:5000
|
|
- name: FRIGATE_PUBLIC_URL
|
|
value: ""
|
|
- name: FRIGATE_CAMERA_PATH_TEMPLATE
|
|
value: /#{camera_quoted}
|
|
- name: MQTT_HOST
|
|
value: mqtt.default.svc.cluster.local
|
|
- name: BASE_TOPIC
|
|
value: frigate_camera_control/frigate-main
|
|
- name: UI_LANGUAGE
|
|
value: en
|
|
- name: FRIGATE_REFRESH_SECONDS
|
|
value: "300"
|
|
- name: STARTUP_ALL_OFF
|
|
value: "true"
|
|
- name: AUTO_OFF_SIREN_SECONDS
|
|
value: "180"
|
|
- name: AUTO_OFF_RED_BLUE_SECONDS
|
|
value: "300"
|
|
- name: AUTO_OFF_WHITE_LIGHT_SECONDS
|
|
value: "600"
|
|
- name: MQTT_USER
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: frigate-camera-control
|
|
key: mqtt-user
|
|
- name: MQTT_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: frigate-camera-control
|
|
key: mqtt-password
|
|
- name: DEFAULT_CAMERA_USER
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: frigate-camera-control
|
|
key: camera-user
|
|
- name: DEFAULT_CAMERA_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: frigate-camera-control
|
|
key: camera-password
|
|
- name: HTTP_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: frigate-camera-control
|
|
key: http-token
|
|
optional: true
|
|
ports:
|
|
- name: control-http
|
|
containerPort: 5011
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /readyz
|
|
port: control-http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: control-http
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 30
|
|
volumeMounts:
|
|
- name: camera-control-state
|
|
mountPath: /var/lib/frigate-camera-control-bridge
|
|
volumes:
|
|
- name: camera-control-state
|
|
emptyDir: {}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: frigate-camera-control
|
|
spec:
|
|
selector:
|
|
app: frigate-camera-control
|
|
ports:
|
|
- name: control-http
|
|
port: 5011
|
|
targetPort: control-http
|