This commit is contained in:
Ariel Sosnovsky committed 2024-02-16 12:38:18 -05:00
1 parent efcaa36116
commit 91d1a4ebf1
12 files changed
-570

No files matched your search

-7
View File
@@ -1,7 +0,0 @@
apiVersion: v2
name: frigate
description: An apps service for homelab
type: application
version: 0.1.0
appVersion: "edge"
dependencies: []
@@ -1,99 +0,0 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: "frigate"
spec:
replicas: 1
revisionHistoryLimit: 3
strategy:
type: Recreate
selector:
matchLabels:
homelab/app: frigate
template:
metadata:
labels:
homelab/app: frigate
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{- .Values.nodeSelector | toYaml | nindent 8}}
{{- end }}
volumes:
{{- if .Values.persistence.media_path.enabled }}
- name: media-path
persistentVolumeClaim:
claimName: {{ .Values.persistence.media_path.claimName }}
{{- end }}
{{- if .Values.persistence.conf_path.enabled }}
- name: conf-path
persistentVolumeClaim:
claimName: {{ .Values.persistence.conf_path.claimName }}
{{- end }}
{{- if .Values.coral.enabled }}
- name: coral-dev
hostPath:
path: {{ .Values.coral.hostPath }}
{{- end }}
- name: dshm
emptyDir:
medium: Memory
containers:
- name: frigate
imagePullPolicy: "Always"
securityContext:
privileged: true
image: "{{ .Values.images.frigate.repo }}:{{ .Values.images.frigate.tag | default .Chart.AppVersion }}"
resources:
{{- .Values.resources.frigate | toYaml | nindent 14}}
livenessProbe:
httpGet:
path: /
port: http
scheme: HTTP
initialDelaySeconds: 10
failureThreshold: 10
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /
port: http
scheme: HTTP
initialDelaySeconds: 10
failureThreshold: 10
timeoutSeconds: 30
startupProbe:
httpGet:
path: /
port: http
scheme: HTTP
failureThreshold: 60
periodSeconds: 15
ports:
- containerPort: 5000
name: http
- containerPort: 8554
name: rtsp
- containerPort: 8555
name: webrtc-tcp
protocol: TCP
- containerPort: 8555
name: webrtc-udp
protocol: UDP
volumeMounts:
{{- if .Values.persistence.media_path.enabled }}
- name: media-path
mountPath: /media/frigate
{{ end }}
{{- if .Values.persistence.conf_path.enabled }}
- name: conf-path
mountPath: /config
subPath: frigate
{{ end }}
{{- if .Values.coral.enabled }}
- mountPath: {{ .Values.coral.hostPath }}
name: coral-dev
{{- end }}
- mountPath: /dev/shm
name: dshm
@@ -1,72 +0,0 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: "go2rtc"
spec:
replicas: 1
revisionHistoryLimit: 3
strategy:
type: Recreate
selector:
matchLabels:
homelab/app: go2rtc
template:
metadata:
labels:
homelab/app: go2rtc
spec:
volumes:
{{- if .Values.persistence.conf_path.enabled }}
- name: conf-path
persistentVolumeClaim:
claimName: {{ .Values.persistence.conf_path.claimName }}
{{- end }}
containers:
- name: go2rtc
imagePullPolicy: "Always"
securityContext:
privileged: true
image: "{{ .Values.images.go2rtc.repo }}:{{ .Values.images.go2rtc.tag | default .Chart.AppVersion }}"
resources:
{{- .Values.resources.go2rtc | toYaml | nindent 14}}
livenessProbe:
httpGet:
path: /
port: http
scheme: HTTP
initialDelaySeconds: 10
failureThreshold: 10
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /
port: http
scheme: HTTP
initialDelaySeconds: 10
failureThreshold: 10
timeoutSeconds: 30
startupProbe:
httpGet:
path: /
port: http
scheme: HTTP
failureThreshold: 60
periodSeconds: 15
ports:
- containerPort: 1984
name: http
- containerPort: 8554
name: rtsp
- containerPort: 8555
name: webrtc-tcp
protocol: TCP
- containerPort: 8555
name: webrtc-udp
protocol: UDP
volumeMounts:
{{- if .Values.persistence.conf_path.enabled }}
- name: conf-path
mountPath: /config
subPath: go2rtc
{{ end }}
@@ -1,123 +0,0 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: "scrypted"
spec:
replicas: 1
revisionHistoryLimit: 2
strategy:
type: Recreate
selector:
matchLabels:
homelab/app: scrypted
template:
metadata:
labels:
homelab/app: scrypted
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{- .Values.nodeSelector | toYaml | nindent 8}}
{{- end }}
volumes:
{{- if .Values.persistence.media_path.enabled }}
- name: media-path
persistentVolumeClaim:
claimName: {{ .Values.persistence.media_path.claimName }}
{{- end }}
{{- if .Values.persistence.conf_path.enabled }}
- name: conf-path
persistentVolumeClaim:
claimName: {{ .Values.persistence.conf_path.claimName }}
{{- end }}
{{- if .Values.coral.enabledForScrypted }}
- name: coral-dev
hostPath:
path: {{ .Values.coral.hostPath }}
{{- end }}
- name: dshm
emptyDir:
medium: Memory
containers:
- name: scrypted
imagePullPolicy: "Always"
securityContext:
privileged: true
image: "{{ .Values.images.scrypted.repo }}:{{ .Values.images.scrypted.tag | default .Chart.AppVersion }}"
resources:
{{- .Values.resources.scrypted | toYaml | nindent 14}}
livenessProbe:
httpGet:
path: /
port: http
scheme: HTTP
initialDelaySeconds: 10
failureThreshold: 10
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /
port: http
scheme: HTTP
initialDelaySeconds: 10
failureThreshold: 10
timeoutSeconds: 30
startupProbe:
httpGet:
path: /
port: http
scheme: HTTP
failureThreshold: 60
periodSeconds: 15
ports:
- containerPort: 80
name: http
- containerPort: 443
name: https
- containerPort: 8080
name: debug
- containerPort: 554
name: rtsp-tcp
protocol: TCP
- containerPort: 554
name: rtsp-udp
protocol: UDP
- containerPort: 47524
name: homekit
{{ with .Values.scrypted.homekit }}
{{ range $i := (untilStep (int .startPort) (int .endPort) 1) }}
- containerPort: {{$i}}
name: homekit-{{$i}}
{{ end }}
{{ end }}
env:
- name: SCRYPTED_NVR_VOLUME
value: /nvr
- name: SCRYPTED_DISABLE_AUTHENTICATION
value: 'true'
- name: SCRYPTED_INSECURE_PORT
value: '80'
- name: SCRYPTED_SECURE_PORT
value: '443'
- name: SCRYPTED_DEBUG_PORT
value: '8080'
- name: SCRYPTED_DOCKER_AVAHI
value: 'true'
volumeMounts:
{{- if .Values.persistence.media_path.enabled }}
- name: media-path
mountPath: /nvr
subPath: scrypted
{{ end }}
{{- if .Values.persistence.conf_path.enabled }}
- name: conf-path
mountPath: /server/volume
subPath: scrypted
{{ end }}
{{- if .Values.coral.enabledForScrypted }}
- mountPath: {{ .Values.coral.hostPath }}
name: coral-dev
{{- end }}
- mountPath: /dev/shm
name: dshm
-51
View File
@@ -1,51 +0,0 @@
---
kind: Service
apiVersion: v1
metadata:
name: go2rtc-lb
spec:
selector:
homelab/app: go2rtc
type: LoadBalancer
ports:
- port: 8554
targetPort: 8554
name: rtsp
protocol: TCP
- port: 8555
targetPort: 8555
name: webrtc-tcp
protocol: TCP
- port: 8555
targetPort: 8555
name: webrtc-udp
protocol: UDP
- port: 1984
targetPort: 1984
name: http
protocol: TCP
---
kind: Service
apiVersion: v1
metadata:
name: scrypted-lb
spec:
selector:
homelab/app: scrypted
type: LoadBalancer
ports:
- port: 554
targetPort: 554
name: rtsp-tcp
protocol: TCP
- port: 554
targetPort: 554
name: rtsp-udp
protocol: UDP
{{ with .Values.scrypted.homekit }}
{{ range $i := (untilStep (int .startPort) (int .endPort) 1) }}
- port: {{$i}}
targetPort: {{$i}}
name: homekit-{{$i}}
{{ end }}
{{ end }}
-35
View File
@@ -1,35 +0,0 @@
---
kind: Service
apiVersion: v1
metadata:
name: frigate-nodeport
spec:
selector:
homelab/app: frigate
type: NodePort
ports:
- port: 1984
nodePort: 30001
targetPort: 1984
name: go2rtc
protocol: TCP
- port: 5000
nodePort: 30000
targetPort: 5000
name: http
protocol: TCP
- port: 8554
nodePort: 30554
targetPort: 8554
name: rtsp
protocol: TCP
- port: 8555
nodePort: 30555
targetPort: 8555
name: webrtc-tcp
protocol: TCP
- port: 8555
nodePort: 30555
targetPort: 8555
name: webrtc-udp
protocol: UDP
-85
View File
@@ -1,85 +0,0 @@
---
kind: Service
apiVersion: v1
metadata:
name: frigate
spec:
selector:
homelab/app: frigate
type: ClusterIP
ports:
- port: 80
targetPort: 5000
name: http
protocol: TCP
- port: 8554
targetPort: 8554
name: rtsp
protocol: TCP
- port: 8555
targetPort: 8555
name: webrtc-tcp
protocol: TCP
- port: 8555
targetPort: 8555
name: webrtc-udp
protocol: UDP
---
kind: Service
apiVersion: v1
metadata:
name: go2rtc
spec:
selector:
homelab/app: go2rtc
type: ClusterIP
ports:
- port: 8554
targetPort: 8554
name: rtsp
protocol: TCP
- port: 8555
targetPort: 8555
name: webrtc-tcp
protocol: TCP
- port: 8555
targetPort: 8555
name: webrtc-udp
protocol: UDP
- port: 80
targetPort: 1984
name: http
protocol: TCP
---
kind: Service
apiVersion: v1
metadata:
name: scrypted
spec:
selector:
homelab/app: scrypted
type: ClusterIP
ports:
- port: 554
targetPort: 554
name: rtsp-tcp
protocol: TCP
- port: 554
targetPort: 554
name: rtsp-udp
protocol: UDP
- port: 80
targetPort: 80
name: http
protocol: TCP
- port: 443
targetPort: 443
name: https
protocol: TCP
{{ with .Values.scrypted.homekit }}
{{ range $i := (untilStep (int .startPort) (int .endPort) 1) }}
- port: {{$i}}
targetPort: {{$i}}
name: homekit-{{$i}}
{{ end }}
{{ end }}
View File
Whitespace-only changes.
-5
View File
@@ -1,5 +0,0 @@
coral:
enabled: true
nodeSelector:
"homelab.device/coral": "usb"
-46
View File
@@ -1,46 +0,0 @@
images:
frigate:
repo: "ghcr.io/blakeblackshear/frigate"
tag: "stable"
go2rtc:
repo: "alexxit/go2rtc"
tag: "latest"
scrypted:
repo: "ghcr.io/koush/scrypted"
tag: "latest"
persistence:
media_path:
enabled: false
claimName: ""
conf_path:
enabled: false
claimName: ""
affinity: {}
coral:
enabled: false
hostPath: /dev/bus/usb
resources:
frigate:
requests:
memory: "4Gi"
cpu: "2"
limits:
memory: "4Gi"
go2rtc:
requests:
memory: "100Mi"
cpu: "500m"
limits:
memory: "500Mi"
scrypted:
homekit:
startPort: 4000
endPort: 4010
-17
View File
@@ -60,23 +60,6 @@ services:
namespace: "apps-videohosting"
port: 8096
group: "Apps"
# - prefix: "frigate"
# service: "frigate"
# namespace: "apps-frigate"
# middleware: "apps-ingresses-chain-authentik"
# group: "Cameras"
# icon: "https://frigate.home.sosnovsky.ca/assets/favicon-92a9ac8b.ico"
# - prefix: "scrypted"
# service: "scrypted"
# namespace: "apps-frigate"
# middleware: "apps-ingresses-chain-authentik"
# group: "Cameras"
# - prefix: "go2rtc"
# service: "go2rtc"
# namespace: "apps-frigate"
# middleware: "apps-ingresses-chain-authentik"
# group: "Cameras"
# icon: "https://frigate.home.sosnovsky.ca/assets/favicon-92a9ac8b.ico"
- prefix: "main"
service: "homepage"
namespace: "chart-homepage"
-30
View File
@@ -72,16 +72,6 @@ apps:
smtp_password_secret: {{ .Values.secrets.smtp.secrets.smtp.name }}
smtp_password_secret_key: password
# frigate:
# values: |-
# persistence:
# media_path:
# enabled: true
# claimName: {{ .Values.storage.frigateMedia.name }}
# conf_path:
# enabled: true
# claimName: {{ .Values.storage.frigateConf.name }}
infrastructureCharts:
cert-manager:
repoURL: "https://charts.jetstack.io"
@@ -204,23 +194,3 @@ storage:
storage: 20Gi
requests:
storage: 1Gi
frigateMedia:
name: frigate-media
namespace: apps-frigate
accessModes:
- ReadWriteMany
resources:
limits:
storage: 100Gi
requests:
storage: 10Gi
frigateConf:
name: frigate-conf
namespace: apps-frigate
accessModes:
- ReadWriteMany
resources:
limits:
storage: 1Gi
requests:
storage: 100Mi