mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
⬆️ frigate app-template v2
This commit is contained in:
@@ -10,7 +10,7 @@ spec:
|
|||||||
chart:
|
chart:
|
||||||
spec:
|
spec:
|
||||||
chart: app-template
|
chart: app-template
|
||||||
version: 1.5.1
|
version: 2.0.3
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
name: bjw-s
|
name: bjw-s
|
||||||
@@ -35,20 +35,59 @@ spec:
|
|||||||
- name: volsync
|
- name: volsync
|
||||||
namespace: volsync
|
namespace: volsync
|
||||||
values:
|
values:
|
||||||
controller:
|
controllers:
|
||||||
type: statefulset
|
main:
|
||||||
annotations:
|
type: statefulset
|
||||||
reloader.stakater.com/auto: "true"
|
annotations:
|
||||||
podManagementPolicy: Parallel
|
reloader.stakater.com/auto: "true"
|
||||||
image:
|
containers:
|
||||||
repository: ghcr.io/blakeblackshear/frigate
|
main:
|
||||||
tag: 0.12.1
|
image:
|
||||||
env:
|
repository: ghcr.io/blakeblackshear/frigate
|
||||||
TZ: ${TIMEZONE}
|
tag: 0.12.1
|
||||||
LIBVA_DRIVER_NAME: i965
|
env:
|
||||||
envFrom:
|
TZ: ${TIMEZONE}
|
||||||
- secretRef:
|
LIBVA_DRIVER_NAME: i965
|
||||||
name: frigate-secret
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: frigate-secret
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 1000Mi
|
||||||
|
gpu.intel.com/i915: 1
|
||||||
|
limits:
|
||||||
|
memory: 6000Mi
|
||||||
|
gpu.intel.com/i915: 1
|
||||||
|
probes:
|
||||||
|
liveness: &probes
|
||||||
|
enabled: true
|
||||||
|
custom: true
|
||||||
|
spec:
|
||||||
|
httpGet:
|
||||||
|
path: /api/version
|
||||||
|
port: &port 5000
|
||||||
|
initialDelaySeconds: 0
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 1
|
||||||
|
failureThreshold: 3
|
||||||
|
readiness: *probes
|
||||||
|
startup:
|
||||||
|
enabled: false
|
||||||
|
statefulset:
|
||||||
|
volumeClaimTemplates:
|
||||||
|
- name: config
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
size: 5Gi
|
||||||
|
storageClass: rook-ceph-block
|
||||||
|
globalMounts:
|
||||||
|
- path: /data
|
||||||
|
pod:
|
||||||
|
nodeSelector:
|
||||||
|
google.feature.node.kubernetes.io/coral: "true"
|
||||||
|
intel.feature.node.kubernetes.io/gpu: "true"
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
@@ -56,80 +95,51 @@ spec:
|
|||||||
loadBalancerIP: ${CLUSTER_LB_FRIGATE}
|
loadBalancerIP: ${CLUSTER_LB_FRIGATE}
|
||||||
ports:
|
ports:
|
||||||
http:
|
http:
|
||||||
port: &port 5000
|
port: *port
|
||||||
rtsp:
|
rtsp:
|
||||||
enabled: true
|
enabled: true
|
||||||
port: 8554
|
port: 8554
|
||||||
probes:
|
|
||||||
liveness: &probes
|
|
||||||
enabled: true
|
|
||||||
custom: true
|
|
||||||
spec:
|
|
||||||
httpGet:
|
|
||||||
path: /api/version
|
|
||||||
port: *port
|
|
||||||
initialDelaySeconds: 0
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 1
|
|
||||||
failureThreshold: 3
|
|
||||||
readiness: *probes
|
|
||||||
startup:
|
|
||||||
enabled: false
|
|
||||||
ingress:
|
ingress:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
annotations:
|
annotations:
|
||||||
auth.home.arpa/enabled: "true"
|
auth.home.arpa/enabled: "true"
|
||||||
hajimari.io/icon: mdi:cctv
|
hajimari.io/icon: mdi:cctv
|
||||||
ingressClassName: nginx
|
className: nginx
|
||||||
hosts:
|
hosts:
|
||||||
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
service:
|
||||||
|
name: main
|
||||||
|
port: http
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- *host
|
- *host
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
persistence:
|
persistence:
|
||||||
config-file:
|
config-file:
|
||||||
enabled: true
|
|
||||||
type: configMap
|
type: configMap
|
||||||
name: frigate-configmap
|
name: frigate-configmap
|
||||||
subPath: config.yml
|
|
||||||
mountPath: /config/config.yml
|
|
||||||
readOnly: true
|
readOnly: true
|
||||||
config:
|
globalMounts:
|
||||||
enabled: true
|
- path: /config
|
||||||
existingClaim: frigate-config
|
|
||||||
mountPath: /data
|
|
||||||
media:
|
media:
|
||||||
enabled: true
|
|
||||||
type: nfs
|
type: nfs
|
||||||
server: "${LOCAL_LAN_OPENMEDIAVAULT}"
|
server: "${LOCAL_LAN_OPENMEDIAVAULT}"
|
||||||
path: /export/frigate
|
path: /export/frigate
|
||||||
mountPath: /media/frigate
|
globalMounts:
|
||||||
|
- path: /media/frigate
|
||||||
cache:
|
cache:
|
||||||
enabled: true
|
|
||||||
type: emptyDir
|
type: emptyDir
|
||||||
medium: Memory
|
medium: Memory
|
||||||
sizeLimit: 4Gi
|
sizeLimit: 4Gi
|
||||||
mountPath: /dev/shm
|
globalMounts:
|
||||||
|
- path: /dev/shm
|
||||||
usb:
|
usb:
|
||||||
enabled: true
|
|
||||||
type: hostPath
|
type: hostPath
|
||||||
hostPath: /dev/bus/usb
|
hostPath: /dev/bus/usb
|
||||||
hostPathType: Directory
|
hostPathType: Directory
|
||||||
mountPath: /dev/bus/usb
|
advancedMounts:
|
||||||
nodeSelector:
|
main:
|
||||||
google.feature.node.kubernetes.io/coral: "true"
|
main:
|
||||||
intel.feature.node.kubernetes.io/gpu: "true"
|
- path: /dev/bus/usb
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 10m
|
|
||||||
memory: 1000Mi
|
|
||||||
gpu.intel.com/i915: "1"
|
|
||||||
limits:
|
|
||||||
memory: 6000Mi
|
|
||||||
gpu.intel.com/i915: "1"
|
|
||||||
|
Reference in New Issue
Block a user