From fe5ba29264276d018c1238725c546a7b56533744 Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Sun, 1 Feb 2026 20:11:25 +0100 Subject: [PATCH] add temporary frigate volume to migrate data --- apps/frigate/config-pvc.yaml | 49 +++++++++++++++++++++++++++++++++ apps/frigate/kustomization.yaml | 2 ++ apps/frigate/media-pvc.yaml | 49 +++++++++++++++++++++++++++++++++ 3 files changed, 100 insertions(+) create mode 100644 apps/frigate/config-pvc.yaml create mode 100644 apps/frigate/media-pvc.yaml diff --git a/apps/frigate/config-pvc.yaml b/apps/frigate/config-pvc.yaml new file mode 100644 index 0000000..0831960 --- /dev/null +++ b/apps/frigate/config-pvc.yaml @@ -0,0 +1,49 @@ +apiVersion: local.openebs.io/v1alpha1 +kind: LVMVolume +metadata: + labels: + kubernetes.io/nodename: anapistula-delrosalae + name: frigate-config + namespace: openebs +spec: + capacity: 5Gi + ownerNodeID: anapistula-delrosalae + shared: "yes" + thinProvision: "no" + vgPattern: ^openebs-hdd$ + volGroup: openebs-hdd +--- +kind: PersistentVolume +apiVersion: v1 +metadata: + name: frigate-config +spec: + capacity: + storage: 5Gi + accessModes: + - ReadWriteOnce + persistentVolumeReclaimPolicy: Retain + storageClassName: openebs-lvmpv + volumeMode: Filesystem + csi: + driver: local.csi.openebs.io + volumeHandle: frigate-config + claimRef: + apiVersion: v1 + kind: PersistentVolumeClaim + namespace: frigate + name: frigate-config-tmp +--- +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: frigate-config-tmp + namespace: frigate +spec: + storageClassName: openebs-lvmpv + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 5Gi + volumeName: frigate-config diff --git a/apps/frigate/kustomization.yaml b/apps/frigate/kustomization.yaml index 6643013..0762aa4 100644 --- a/apps/frigate/kustomization.yaml +++ b/apps/frigate/kustomization.yaml @@ -3,5 +3,7 @@ kind: Kustomization resources: - namespace.yaml - secret.yaml + - config-pvc.yaml + - media-pvc.yaml - release.yaml - webrtc-svc.yaml diff --git a/apps/frigate/media-pvc.yaml b/apps/frigate/media-pvc.yaml new file mode 100644 index 0000000..d83238a --- /dev/null +++ b/apps/frigate/media-pvc.yaml @@ -0,0 +1,49 @@ +apiVersion: local.openebs.io/v1alpha1 +kind: LVMVolume +metadata: + labels: + kubernetes.io/nodename: anapistula-delrosalae + name: frigate-media + namespace: openebs +spec: + capacity: 500Gi + ownerNodeID: anapistula-delrosalae + shared: "yes" + thinProvision: "no" + vgPattern: ^openebs-hdd$ + volGroup: openebs-hdd +--- +kind: PersistentVolume +apiVersion: v1 +metadata: + name: frigate-media +spec: + capacity: + storage: 500Gi + accessModes: + - ReadWriteOnce + persistentVolumeReclaimPolicy: Retain + storageClassName: openebs-lvmpv + volumeMode: Filesystem + csi: + driver: local.csi.openebs.io + volumeHandle: frigate-media + claimRef: + apiVersion: v1 + kind: PersistentVolumeClaim + namespace: frigate + name: frigate-media-tmp +--- +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: frigate-media-tmp + namespace: frigate +spec: + storageClassName: openebs-lvmpv + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 500Gi + volumeName: frigate-media