forked from k-space/kube
		
	frigate to VM and hdd-ceph
This commit is contained in:
		| @@ -14,3 +14,7 @@ kustomize build . --enable-helm | |||||||
| - Amcrest 5MP Turret PoE Outdoor IP Camera with Mic/Audio, 98ft NightVision, 132° FOV, MicroSD (256GB) IP5M-T1179EW-AI-V3 white | - Amcrest 5MP Turret PoE Outdoor IP Camera with Mic/Audio, 98ft NightVision, 132° FOV, MicroSD (256GB) IP5M-T1179EW-AI-V3 white | ||||||
|  |  | ||||||
| Cameras are enumerated (with credentials) in secretspace. | Cameras are enumerated (with credentials) in secretspace. | ||||||
|  |  | ||||||
|  | ## Coral setup | ||||||
|  | 1. Map USB to VM (#TODO: blog post coming up for exact steps) | ||||||
|  | 2. `k label no worker91.kube.k-space.ee coral.ai/tpu=Exists` | ||||||
|   | |||||||
| @@ -16,5 +16,4 @@ resources: | |||||||
| - ssh://git@git.k-space.ee/secretspace/kube/frigate # secrets (.env): go2rtc-config, frigate-mqtt-secret, frigate-rtsp-secret | - ssh://git@git.k-space.ee/secretspace/kube/frigate # secrets (.env): go2rtc-config, frigate-mqtt-secret, frigate-rtsp-secret | ||||||
| - ./auth.yml | - ./auth.yml | ||||||
| - ./rabbitmq.yml | - ./rabbitmq.yml | ||||||
| - ./storage.yml |  | ||||||
| - ./transcode.yml | - ./transcode.yml | ||||||
|   | |||||||
| @@ -1,32 +0,0 @@ | |||||||
| --- |  | ||||||
| apiVersion: v1 |  | ||||||
| kind: PersistentVolume |  | ||||||
| metadata: |  | ||||||
|   name: frigate-storage |  | ||||||
| spec: |  | ||||||
|   persistentVolumeReclaimPolicy: Retain |  | ||||||
|   capacity: |  | ||||||
|     storage: 1Ti |  | ||||||
|   accessModes: |  | ||||||
|     - ReadWriteMany |  | ||||||
|   storageClassName: "" |  | ||||||
|   nfs: |  | ||||||
|     server: 172.21.0.7 |  | ||||||
|     path: /nas/k6/frigate |  | ||||||
|   mountOptions: |  | ||||||
|     - vers=4 |  | ||||||
|     - minorversion=1 |  | ||||||
|     - noac |  | ||||||
| --- |  | ||||||
| apiVersion: v1 |  | ||||||
| kind: PersistentVolumeClaim |  | ||||||
| metadata: |  | ||||||
|   name: frigate-storage |  | ||||||
| spec: |  | ||||||
|   volumeName: frigate-storage |  | ||||||
|   storageClassName: "" |  | ||||||
|   accessModes: |  | ||||||
|     - ReadWriteMany |  | ||||||
|   resources: |  | ||||||
|     requests: |  | ||||||
|       storage: 1Ti |  | ||||||
| @@ -29,13 +29,6 @@ spec: | |||||||
|                     values: |                     values: | ||||||
|                       - go2rtc |                       - go2rtc | ||||||
|               topologyKey: "kubernetes.io/hostname" |               topologyKey: "kubernetes.io/hostname" | ||||||
|       nodeSelector: |  | ||||||
|         dedicated: nvr |  | ||||||
|       tolerations: |  | ||||||
|         - key: dedicated |  | ||||||
|           operator: Equal |  | ||||||
|           value: nvr |  | ||||||
|           effect: NoSchedule |  | ||||||
|       containers: |       containers: | ||||||
|         - name: go2rtc |         - name: go2rtc | ||||||
|           image: alexxit/go2rtc |           image: alexxit/go2rtc | ||||||
|   | |||||||
| @@ -125,24 +125,16 @@ ingress: | |||||||
|       - "*.k-space.ee" |       - "*.k-space.ee" | ||||||
|  |  | ||||||
| persistence: | persistence: | ||||||
|   config: |  | ||||||
|     # WIP :) |  | ||||||
|     enabled: false |  | ||||||
|     storageClass: "null" |  | ||||||
|     accessMode: ReadWriteOnce |  | ||||||
|     size: 1000Mi |  | ||||||
|     skipuninstall: false |  | ||||||
|  |  | ||||||
|   media: |   media: | ||||||
|     enabled: true |     enabled: true | ||||||
|     existingClaim: "frigate-storage" |     storageClass: "hdd-ceph" | ||||||
|     skipuninstall: true |     size: 1Ti | ||||||
|  |  | ||||||
| # Force application to run on nvr node | # Force application to run on nvr node | ||||||
| nodeSelector: | nodeSelector: | ||||||
|   dedicated: nvr |   coral.ai/tpu: Exists | ||||||
| tolerations: | tolerations: | ||||||
|   - key: dedicated |   - key: coral.ai/tpu | ||||||
|     operator: Equal |     operator: Equal | ||||||
|     value: nvr |     value: Exists | ||||||
|     effect: NoSchedule |     effect: NoSchedule | ||||||
|   | |||||||
| @@ -114,6 +114,30 @@ volumeBindingMode: WaitForFirstConsumer | |||||||
| --- | --- | ||||||
| apiVersion: storage.k8s.io/v1 | apiVersion: storage.k8s.io/v1 | ||||||
| kind: StorageClass | kind: StorageClass | ||||||
|  | metadata: | ||||||
|  |   name: hdd-ceph | ||||||
|  |   annotations: | ||||||
|  |     kubernetes.io/description: | | ||||||
|  |       Generic HDD storage on CEPH. | ||||||
|  | provisioner: rook-ceph.rbd.csi.ceph.com | ||||||
|  | parameters: | ||||||
|  |   clusterID: rook-ceph | ||||||
|  |   csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner | ||||||
|  |   csi.storage.k8s.io/controller-expand-secret-namespace: rook-ceph | ||||||
|  |   csi.storage.k8s.io/fstype: xfs | ||||||
|  |   csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node | ||||||
|  |   csi.storage.k8s.io/node-stage-secret-namespace: rook-ceph | ||||||
|  |   csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner | ||||||
|  |   csi.storage.k8s.io/provisioner-secret-namespace: rook-ceph | ||||||
|  |   imageFeatures: layering | ||||||
|  |   imageFormat: '2' | ||||||
|  |   pool: ks-hdd | ||||||
|  | reclaimPolicy: Retain | ||||||
|  | allowVolumeExpansion: true | ||||||
|  | volumeBindingMode: WaitForFirstConsumer | ||||||
|  | --- | ||||||
|  | apiVersion: storage.k8s.io/v1 | ||||||
|  | kind: StorageClass | ||||||
| metadata: | metadata: | ||||||
|   name: "null" |   name: "null" | ||||||
|   annotations: |   annotations: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user