added motioneye

This commit is contained in:
Ariel Sosnovsky committed 2023-04-21 15:34:01 -04:00
1 parent e6f322c189
commit ffde569cbd
9 files changed
+140 -2

No files matched your search

+3 -1
View File
@@ -1 +1,3 @@
{}
{
"yaml.schemas": {}
}
+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: []
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-configs
data:
motioneye.conf: |-
{{ range $k, $v := .Values.conf }}
{{- $k}} {{$v}}
{{ end }}
@@ -0,0 +1,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ .Release.Name }}"
spec:
selector:
matchLabels:
"{{ .Release.Name }}/app": motioneye
template:
metadata:
labels:
"{{ .Release.Name }}/app": motioneye
spec:
volumes:
- name: config
configMap:
name: {{ .Release.Name }}-configs
defaultMode: 420
{{- if .Values.persistence.media_path.enabled }}
- name: media_path
persistentVolumeClaim:
claimName: {{ .Values.persistence.media_path.claimName }}
{{- end }}
containers:
- name: main
image: "{{ .Values.image }}:{{ .Values.tag | default .Chart.AppVersion }}"
resources:
{{- .Values.resources | toYaml | nindent 14}}
ports:
- containerPort: {{ .Values.conf.port }}
name: http
- containerPort: {{ .Values.conf.motion_control_port }}
name: control_port
volumeMounts:
- name: config
mountPath: /etc/motioneye/motioneye.conf
subPath: "motioneye.conf"
{{- if .Values.persistence.media_path.enabled }}
- name: media_path
mountPath: {{ .Values.conf.media_path }}
{{ end }}
+18
View File
@@ -0,0 +1,18 @@
---
kind: Service
apiVersion: v1
metadata:
name: {{ .Release.Name }}
spec:
selector:
"{{ .Release.Name }}/app": motioneye
type: ClusterIP
ports:
- port: 80
targetPort: {{ .Values.conf.port }}
name: http
protocol: TCP
- port: {{ .Values.conf.motion_control_port }}
targetPort: {{ .Values.conf.motion_control_port }}
name: control_port
protocol: TCP
View File
Whitespace-only changes.
View File
Whitespace-only changes.
+44
View File
@@ -0,0 +1,44 @@
image: "ghcr.io/motioneye-project/motioneye"
tag: ""
persistence:
media_path:
enabled: false
claimName: ""
resources:
requests:
memory: "128Mi"
cpu: "500m"
limits:
memory: "1Gi"
cpu: "2"
conf:
server_name: motionEye
conf_path: /etc/motioneye
run_path: /var/run
log_path: /var/log
media_path: /var/lib/motioneye
log_level: info
listen: 0.0.0.0
port: 8765
motion_control_localhost: true
motion_control_port: 7999
motion_check_interval: 10
motion_restart_on_errors: false
mount_check_interval: 300
cleanup_interval: 43200
remote_request_timeout: 10
mjpg_client_timeout: 10
mjpg_client_idle_timeout: 10
smb_shares: false
smb_mount_root: /media
enable_reboot: false
smtp_timeout: 60
list_media_timeout: 120
list_media_timeout_email: 10
zip_timeout: 500
timelapse_timeout: 500
add_remove_cameras: true
http_basic_auth: false
+18 -1
View File
@@ -169,6 +169,13 @@ apps:
authelia:
valuesFile: authelia.yaml
motioneye:
values: |-
persistence:
media_path:
enabled: true
claimName: {{ .Values.storage.motioneyeMedia.name }}
infrastructureCharts:
cert-manager:
@@ -268,4 +275,14 @@ storage:
limits:
storage: 100Gi
requests:
storage: 10Gi
storage: 10Gi
motioneyeMedia:
name: motioneye-media
namespace: apps-motioneye
accessModes:
- ReadWriteMany
resources:
limits:
storage: 100Gi
requests:
storage: 10Gi