From 91d1a4ebf1be3dffea863b079be9e1dfe97b5d11 Mon Sep 17 00:00:00 2001 From: Ariel Sosnovsky Date: Fri, 16 Feb 2024 12:38:18 -0500 Subject: [PATCH] clean up --- k8s/apps/frigate/Chart.yaml | 7 -- k8s/apps/frigate/templates/dep-frigate.yaml | 99 --------------- k8s/apps/frigate/templates/dep-go2rtc.yaml | 72 ----------- k8s/apps/frigate/templates/dep-scrypted.yaml | 123 ------------------- k8s/apps/frigate/templates/lb.yaml | 51 -------- k8s/apps/frigate/templates/np.yaml | 35 ------ k8s/apps/frigate/templates/service.yaml | 85 ------------- k8s/apps/frigate/values-dev.yaml | 0 k8s/apps/frigate/values-prod.yaml | 5 - k8s/apps/frigate/values.yaml | 46 ------- k8s/argoapps/apps-values/ingresses.yaml | 17 --- k8s/argoapps/values.yaml | 30 ----- 12 files changed, 570 deletions(-) delete mode 100644 k8s/apps/frigate/Chart.yaml delete mode 100644 k8s/apps/frigate/templates/dep-frigate.yaml delete mode 100644 k8s/apps/frigate/templates/dep-go2rtc.yaml delete mode 100644 k8s/apps/frigate/templates/dep-scrypted.yaml delete mode 100644 k8s/apps/frigate/templates/lb.yaml delete mode 100644 k8s/apps/frigate/templates/np.yaml delete mode 100644 k8s/apps/frigate/templates/service.yaml delete mode 100644 k8s/apps/frigate/values-dev.yaml delete mode 100644 k8s/apps/frigate/values-prod.yaml delete mode 100644 k8s/apps/frigate/values.yaml diff --git a/k8s/apps/frigate/Chart.yaml b/k8s/apps/frigate/Chart.yaml deleted file mode 100644 index 83360f3..0000000 --- a/k8s/apps/frigate/Chart.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v2 -name: frigate -description: An apps service for homelab -type: application -version: 0.1.0 -appVersion: "edge" -dependencies: [] diff --git a/k8s/apps/frigate/templates/dep-frigate.yaml b/k8s/apps/frigate/templates/dep-frigate.yaml deleted file mode 100644 index 538bd38..0000000 --- a/k8s/apps/frigate/templates/dep-frigate.yaml +++ /dev/null @@ -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 diff --git a/k8s/apps/frigate/templates/dep-go2rtc.yaml b/k8s/apps/frigate/templates/dep-go2rtc.yaml deleted file mode 100644 index 4c94fab..0000000 --- a/k8s/apps/frigate/templates/dep-go2rtc.yaml +++ /dev/null @@ -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 }} diff --git a/k8s/apps/frigate/templates/dep-scrypted.yaml b/k8s/apps/frigate/templates/dep-scrypted.yaml deleted file mode 100644 index 116e08a..0000000 --- a/k8s/apps/frigate/templates/dep-scrypted.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/k8s/apps/frigate/templates/lb.yaml b/k8s/apps/frigate/templates/lb.yaml deleted file mode 100644 index 560a8df..0000000 --- a/k8s/apps/frigate/templates/lb.yaml +++ /dev/null @@ -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 }} \ No newline at end of file diff --git a/k8s/apps/frigate/templates/np.yaml b/k8s/apps/frigate/templates/np.yaml deleted file mode 100644 index 8ccac10..0000000 --- a/k8s/apps/frigate/templates/np.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/k8s/apps/frigate/templates/service.yaml b/k8s/apps/frigate/templates/service.yaml deleted file mode 100644 index f3685e5..0000000 --- a/k8s/apps/frigate/templates/service.yaml +++ /dev/null @@ -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 }} \ No newline at end of file diff --git a/k8s/apps/frigate/values-dev.yaml b/k8s/apps/frigate/values-dev.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/k8s/apps/frigate/values-prod.yaml b/k8s/apps/frigate/values-prod.yaml deleted file mode 100644 index f051815..0000000 --- a/k8s/apps/frigate/values-prod.yaml +++ /dev/null @@ -1,5 +0,0 @@ -coral: - enabled: true - -nodeSelector: - "homelab.device/coral": "usb" diff --git a/k8s/apps/frigate/values.yaml b/k8s/apps/frigate/values.yaml deleted file mode 100644 index 6faf299..0000000 --- a/k8s/apps/frigate/values.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/k8s/argoapps/apps-values/ingresses.yaml b/k8s/argoapps/apps-values/ingresses.yaml index b4097c4..497cbe5 100644 --- a/k8s/argoapps/apps-values/ingresses.yaml +++ b/k8s/argoapps/apps-values/ingresses.yaml @@ -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" diff --git a/k8s/argoapps/values.yaml b/k8s/argoapps/values.yaml index 7fe7965..cd27167 100644 --- a/k8s/argoapps/values.yaml +++ b/k8s/argoapps/values.yaml @@ -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