redeploy (and update) frigate
longhorn is stuck in a loop attaching/detacching its storage
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
```
|
```
|
||||||
helm repo add blakeblackshear https://blakeblackshear.github.io/blakeshome-charts/
|
helm repo add blakeblackshear https://blakeblackshear.github.io/blakeshome-charts/
|
||||||
helm template -n frigate --release-name frigate blakeblackshear/frigate --include-crds -f values.yaml > application.yml
|
helm template -n frigate --release-name frigate blakeblackshear/frigate --include-crds -f values.yaml > application.yml
|
||||||
```
|
kubectl apply -n frigate -f application.yml -f auth.yml -f rabbitmq.yml -f storage-class.yml -f storage.yml -f transcode.yml
|
||||||
|
```
|
||||||
|
@@ -7,7 +7,7 @@ metadata:
|
|||||||
namespace: frigate
|
namespace: frigate
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: frigate
|
app.kubernetes.io/name: frigate
|
||||||
helm.sh/chart: frigate-7.6.0
|
helm.sh/chart: frigate-7.8.0
|
||||||
app.kubernetes.io/instance: frigate
|
app.kubernetes.io/instance: frigate
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
data:
|
data:
|
||||||
@@ -25,6 +25,19 @@ data:
|
|||||||
coral:
|
coral:
|
||||||
type: edgetpu
|
type: edgetpu
|
||||||
device: usb
|
device: usb
|
||||||
|
#cpu1:
|
||||||
|
#type: cpu
|
||||||
|
#ov:
|
||||||
|
# type: openvino
|
||||||
|
# device: CPU
|
||||||
|
|
||||||
|
model:
|
||||||
|
width: 300
|
||||||
|
height: 300
|
||||||
|
input_tensor: nhwc
|
||||||
|
input_pixel_format: bgr
|
||||||
|
path: /openvino-model/ssdlite_mobilenet_v2.xml
|
||||||
|
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
|
||||||
|
|
||||||
record:
|
record:
|
||||||
enabled: True
|
enabled: True
|
||||||
@@ -77,7 +90,7 @@ metadata:
|
|||||||
name: frigate-config
|
name: frigate-config
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: frigate
|
app.kubernetes.io/name: frigate
|
||||||
helm.sh/chart: frigate-7.6.0
|
helm.sh/chart: frigate-7.8.0
|
||||||
app.kubernetes.io/instance: frigate
|
app.kubernetes.io/instance: frigate
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
spec:
|
spec:
|
||||||
@@ -95,9 +108,9 @@ metadata:
|
|||||||
name: frigate
|
name: frigate
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: frigate
|
app.kubernetes.io/name: frigate
|
||||||
helm.sh/chart: frigate-7.6.0
|
helm.sh/chart: frigate-7.8.0
|
||||||
app.kubernetes.io/instance: frigate
|
app.kubernetes.io/instance: frigate
|
||||||
app.kubernetes.io/version: "0.14.0"
|
app.kubernetes.io/version: "0.14.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -122,6 +135,14 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: rtsp
|
targetPort: rtsp
|
||||||
|
|
||||||
|
- name: webrtc-tcp
|
||||||
|
port: 8555
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: webrtc-tcp
|
||||||
|
- name: webrtc-udp
|
||||||
|
port: 8555
|
||||||
|
protocol: UDP
|
||||||
|
targetPort: webrtc-udp
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: frigate
|
app.kubernetes.io/name: frigate
|
||||||
app.kubernetes.io/instance: frigate
|
app.kubernetes.io/instance: frigate
|
||||||
@@ -133,9 +154,9 @@ metadata:
|
|||||||
name: frigate
|
name: frigate
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: frigate
|
app.kubernetes.io/name: frigate
|
||||||
helm.sh/chart: frigate-7.6.0
|
helm.sh/chart: frigate-7.8.0
|
||||||
app.kubernetes.io/instance: frigate
|
app.kubernetes.io/instance: frigate
|
||||||
app.kubernetes.io/version: "0.14.0"
|
app.kubernetes.io/version: "0.14.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@@ -152,28 +173,31 @@ spec:
|
|||||||
app.kubernetes.io/name: frigate
|
app.kubernetes.io/name: frigate
|
||||||
app.kubernetes.io/instance: frigate
|
app.kubernetes.io/instance: frigate
|
||||||
annotations:
|
annotations:
|
||||||
checksum/configmap: e87f827cda067d3ff35d52fb3cef3286e9670da77c9b83a5518b35f14f6aaa19
|
checksum/configmap: c03d767c7ef736f9d27d13a90ca868c5d4666b6e3e37b73b3e3b74be088dfff2
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
initContainers:
|
||||||
dedicated: nvr
|
- name: copyconfig
|
||||||
tolerations:
|
image: "ghcr.io/blakeblackshear/frigate:0.14.1"
|
||||||
- key: dedicated
|
imagePullPolicy: IfNotPresent
|
||||||
operator: Equal
|
volumeMounts:
|
||||||
value: nvr
|
- mountPath: /config.yml
|
||||||
effect: NoSchedule
|
subPath: config.yml
|
||||||
|
name: configmap
|
||||||
|
- mountPath: /config
|
||||||
|
name: config
|
||||||
|
command: [ "cp" ]
|
||||||
|
args: [ "-v", "/config.yml", "/config/config.yml" ]
|
||||||
containers:
|
containers:
|
||||||
- name: frigate
|
- name: frigate
|
||||||
image: "ghcr.io/blakeblackshear/frigate:0.14.0"
|
image: "ghcr.io/blakeblackshear/frigate:0.14.1"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
capabilities:
|
|
||||||
add: ["SYS_RAWIO"]
|
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 5000
|
containerPort: 5000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- name: http-auth
|
- name: http-auth
|
||||||
containerPort: 8971
|
containerPort: 8971
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- name: rtmp
|
- name: rtmp
|
||||||
@@ -182,6 +206,15 @@ spec:
|
|||||||
- name: rtsp
|
- name: rtsp
|
||||||
containerPort: 8554
|
containerPort: 8554
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
- name: webrtc-udp
|
||||||
|
containerPort: 8555
|
||||||
|
protocol: UDP
|
||||||
|
- name: webrtc-tcp
|
||||||
|
containerPort: 8555
|
||||||
|
protocol: TCP
|
||||||
|
- name: go2rtc-admin
|
||||||
|
containerPort: 1984
|
||||||
|
protocol: TCP
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
@@ -207,9 +240,6 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /dev/bus/usb
|
- mountPath: /dev/bus/usb
|
||||||
name: coral-dev
|
name: coral-dev
|
||||||
- mountPath: /config/config.yml
|
|
||||||
subPath: config.yml
|
|
||||||
name: configmap
|
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
name: config
|
name: config
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
@@ -229,9 +259,6 @@ spec:
|
|||||||
- name: coral-dev
|
- name: coral-dev
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /dev/bus/usb
|
path: /dev/bus/usb
|
||||||
- name: coral-dev
|
|
||||||
hostPath:
|
|
||||||
path: /dev/bus/usb
|
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: frigate-config
|
claimName: frigate-config
|
||||||
@@ -256,9 +283,9 @@ metadata:
|
|||||||
name: frigate
|
name: frigate
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: frigate
|
app.kubernetes.io/name: frigate
|
||||||
helm.sh/chart: frigate-7.6.0
|
helm.sh/chart: frigate-7.8.0
|
||||||
app.kubernetes.io/instance: frigate
|
app.kubernetes.io/instance: frigate
|
||||||
app.kubernetes.io/version: "0.14.0"
|
app.kubernetes.io/version: "0.14.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
annotations:
|
annotations:
|
||||||
external-dns.alpha.kubernetes.io/target: traefik.k-space.ee
|
external-dns.alpha.kubernetes.io/target: traefik.k-space.ee
|
||||||
|
Reference in New Issue
Block a user