Added z2m

This commit is contained in:
Ariel Sosnovsky committed 2023-10-18 17:36:45 -04:00
1 parent 5a1ff62b3c
commit 85cca0c04e
7 files changed
+134

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
apiVersion: v2
name: motioneye
description: An apps service for homelab
type: application
version: 0.1.0
appVersion: "edge"
dependencies: []
+68
View File
@@ -0,0 +1,68 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ .Release.Name }}"
spec:
replicas: 1
revisionHistoryLimit: 3
strategy:
type: RollingUpdate
selector:
matchLabels:
{{ .Release.Name }}/app: z2m
template:
metadata:
labels:
{{ .Release.Name }}/app: z2m
spec:
affinity:
{{- .Values.affinity | toYaml | nindent 12}}
volumes:
- name: zigbee-stick
hostPath:
path: "{{ .Values.devicePath }}"
- name: data-path
persistentVolumeClaim:
claimName: {{ .Values.persistence.data_path.claimName }}
containers:
- name: main
imagePullPolicy: "IfNotPresent"
securityContext:
privileged: true
image: "{{ .Values.image }}:{{ .Values.tag | default .Chart.AppVersion }}"
resources:
{{- .Values.resources | 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
env:
- name: TZ
value: "{{ .Values.global.timezone }}"
ports:
- containerPort: 8080
name: http
volumeMounts:
- name: zigbee-stick
mountPath: /dev/ttyUSB0
- name: data-path
mountPath: /app/data
+14
View File
@@ -0,0 +1,14 @@
---
kind: Service
apiVersion: v1
metadata:
name: {{ .Release.Name }}
spec:
selector:
{{ .Release.Name }}/app: scrypted
type: ClusterIP
ports:
- port: 80
targetPort: 80
name: http
protocol: TCP
View File
Whitespace-only changes.
View File
Whitespace-only changes.
+29
View File
@@ -0,0 +1,29 @@
image: "koenkk/zigbee2mqtt"
tag: "latest"
flags:
enableNodePort: false
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: hardware/zigbee
operator: In
values:
- "yes"
persistence:
data_path:
claimName: ""
devicePath: /dev/ttyUSB0
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "64Mi"
cpu: "50m"
+16
View File
@@ -89,6 +89,12 @@ apps:
media_path:
enabled: true
claimName: {{ .Values.storage.scrypted.name }}
z2m:
values: |-
persistence:
data_path:
enabled: true
claimName: {{ .Values.storage.z2mData.name }}
frigate:
values: |-
persistence:
@@ -271,6 +277,16 @@ storage:
storage: 100Gi
requests:
storage: 10Gi
z2mData:
name: z2m-data
namespace: apps-z2m
accessModes:
- ReadWriteMany
resources:
limits:
storage: 2Gi
requests:
storage: 2Gi
frigateConf:
name: frigate-conf
namespace: apps-frigate