diff --git a/k8s/apps/frigate/templates/deployment.yaml b/k8s/apps/frigate/templates/deployment.yaml index 7bb1faa..e03e012 100644 --- a/k8s/apps/frigate/templates/deployment.yaml +++ b/k8s/apps/frigate/templates/deployment.yaml @@ -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 diff --git a/k8s/apps/frigate/templates/nodeport.yaml b/k8s/apps/frigate/templates/nodeport.yaml index a360e44..0d12176 100644 --- a/k8s/apps/frigate/templates/nodeport.yaml +++ b/k8s/apps/frigate/templates/nodeport.yaml @@ -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 \ No newline at end of file diff --git a/k8s/apps/frigate/templates/service.yaml b/k8s/apps/frigate/templates/service.yaml index 9b17f9d..a709aa7 100644 --- a/k8s/apps/frigate/templates/service.yaml +++ b/k8s/apps/frigate/templates/service.yaml @@ -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 \ No newline at end of file diff --git a/k8s/argoapps/apps-values/ingresses.yaml b/k8s/argoapps/apps-values/ingresses.yaml index 77817d0..fd98c7e 100644 --- a/k8s/argoapps/apps-values/ingresses.yaml +++ b/k8s/argoapps/apps-values/ingresses.yaml @@ -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"