seperate deploy

This commit is contained in:
Ariel Sosnovsky committed 2023-10-23 16:25:43 -04:00
1 parent 15fbb3f26f
commit 4aa6015fa4
2 files changed
+58 -11

No files matched your search

+34 -9
View File
@@ -61,14 +61,14 @@ spec:
ports: ports:
- containerPort: 5000 - containerPort: 5000
name: http name: http
# - containerPort: 8554 - containerPort: 8554
# name: rtsp name: rtsp
# - containerPort: 8555 - containerPort: 8555
# name: webrtc-tcp name: webrtc-tcp
# protocol: TCP protocol: TCP
# - containerPort: 8555 - containerPort: 8555
# name: webrtc-udp name: webrtc-udp
# protocol: UDP protocol: UDP
volumeMounts: volumeMounts:
{{- if .Values.persistence.media_path.enabled }} {{- if .Values.persistence.media_path.enabled }}
- name: media-path - name: media-path
@@ -79,6 +79,31 @@ spec:
mountPath: /config mountPath: /config
subPath: frigate subPath: frigate
{{ end }} {{ end }}
---
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 - name: go2rtc
imagePullPolicy: "Always" imagePullPolicy: "Always"
securityContext: securityContext:
@@ -111,7 +136,7 @@ spec:
periodSeconds: 15 periodSeconds: 15
ports: ports:
- containerPort: 1984 - containerPort: 1984
name: go2rtc name: http
- containerPort: 8554 - containerPort: 8554
name: rtsp name: rtsp
- containerPort: 8555 - containerPort: 8555
+24 -2
View File
@@ -24,7 +24,29 @@ spec:
targetPort: 8555 targetPort: 8555
name: webrtc-udp name: webrtc-udp
protocol: UDP protocol: UDP
- port: 1984 ---
kind: Service
apiVersion: v1
metadata:
name: frigate
spec:
selector:
homelab/app: frigate
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 targetPort: 1984
name: go2rtc name: http
protocol: TCP protocol: TCP