combined deployments

This commit is contained in:
Ariel Sosnovsky committed 2023-10-23 15:42:24 -04:00
1 parent 365c8e9569
commit a2d3082418
4 files changed
+19 -90

No files matched your search

+11 -36
View File
@@ -28,7 +28,7 @@ spec:
claimName: {{ .Values.persistence.conf_path.claimName }}
{{- end }}
containers:
- name: main
- name: frigate
imagePullPolicy: "IfNotPresent"
securityContext:
privileged: true
@@ -61,14 +61,14 @@ spec:
ports:
- containerPort: 5000
name: http
- containerPort: 8554
name: rtsp
- containerPort: 8555
name: webrtc-tcp
protocol: TCP
- containerPort: 8555
name: webrtc-udp
protocol: UDP
# - 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
@@ -79,32 +79,7 @@ spec:
mountPath: /config
subPath: frigate
{{ end }}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: "go2rtc"
spec:
replicas: 1
revisionHistoryLimit: 3
strategy:
type: RollingUpdate
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: main
- name: go2rtc
imagePullPolicy: "IfNotPresent"
securityContext:
privileged: true
@@ -136,7 +111,7 @@ spec:
periodSeconds: 15
ports:
- containerPort: 1984
name: http
name: go2rtc
- containerPort: 8554
name: rtsp
- containerPort: 8555
+5 -30
View File
@@ -8,6 +8,11 @@ spec:
homelab/app: frigate
type: NodePort
ports:
- port: 1984
nodePort: 30001
targetPort: 1984
name: go2rtc
protocol: TCP
- port: 5000
nodePort: 30000
targetPort: 5000
@@ -28,33 +33,3 @@ spec:
targetPort: 8555
name: webrtc-udp
protocol: UDP
---
kind: Service
apiVersion: v1
metadata:
name: go2rtc-nodeport
spec:
selector:
homelab/app: go2rtc
type: NodePort
ports:
- port: 1984
nodePort: 31000
targetPort: 1984
name: http
protocol: TCP
- port: 8554
nodePort: 31554
targetPort: 8554
name: rtsp
protocol: TCP
- port: 8555
nodePort: 31555
targetPort: 8555
name: webrtc-tcp
protocol: TCP
- port: 8555
nodePort: 31555
targetPort: 8555
name: webrtc-udp
protocol: UDP
+1 -23
View File
@@ -24,29 +24,7 @@ spec:
targetPort: 8555
name: webrtc-udp
protocol: UDP
---
kind: Service
apiVersion: v1
metadata:
name: go2rtc
spec:
selector:
homelab/app: go2rtc
type: ClusterIP
ports:
- port: 1984
targetPort: 1984
name: http
name: go2rtc
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
+2 -1
View File
@@ -48,9 +48,10 @@ services:
namespace: "apps-frigate"
middleware: "apps-ingresses-chain-authentik"
- prefix: "go2rtc"
service: "go2rtc"
service: "frigate"
namespace: "apps-frigate"
middleware: "apps-ingresses-chain-authentik"
port: 1984
# vh services
{{- range $k, $v := .Values.videohosting.linuxserverServices }}
- prefix: "{{ $k }}.vh"